filmov
tv
Android camera2 API video app - Part 17 capturing still image in preview mode

Показать описание
Part 17 describes how to capture a still image in the camera capture session preview mode.
Github details:
You can get it from here
or you can run this command
In this tutorial we will cover:
- Creating the folder & unique file names for the still images
- Setting up a camera capture request for still capture
- Resolving any camera sensor orientation issues
- Creating the still image file name when the capture session callback has started
- Creating a runnable to save the ImageReader's surface to storage
- Calling the runnable once the ImageReader's latest image is available
API's covered
- ImageReader.OnImageAvailableListener
- ImageReader.OnImageAvailable
- CaptureRequestBuilder
- CaptureRequest.JPEG_ORIENTATION
- CameraDevice
- CameraDevice.TEMPLATE_STILL_CAPTURE
- CameraCaptureSession.CaptureCallback
- Image
- ByteBuffer
- FileOutputStream
For much more information checkout
The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.
Android studio (1.5) is the editor of choice (IDE) for this tutorial series.
This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Github details:
You can get it from here
or you can run this command
In this tutorial we will cover:
- Creating the folder & unique file names for the still images
- Setting up a camera capture request for still capture
- Resolving any camera sensor orientation issues
- Creating the still image file name when the capture session callback has started
- Creating a runnable to save the ImageReader's surface to storage
- Calling the runnable once the ImageReader's latest image is available
API's covered
- ImageReader.OnImageAvailableListener
- ImageReader.OnImageAvailable
- CaptureRequestBuilder
- CaptureRequest.JPEG_ORIENTATION
- CameraDevice
- CameraDevice.TEMPLATE_STILL_CAPTURE
- CameraCaptureSession.CaptureCallback
- Image
- ByteBuffer
- FileOutputStream
For much more information checkout
The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.
Android studio (1.5) is the editor of choice (IDE) for this tutorial series.
This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Комментарии