Android camera2 api raw image capture - Part 1 Setup
In this tutorial we will be creating an android camera application that captures both raw & jpeg images.
In Part 1 we will be setup and configuration prior to implementing the code for the raw image capture.
This tutorial is based on the android camera2 api series which can be found here https://www.youtube.com/playlist?list=PL9jCwTXYWjDJUJATHM0Lrjk9N5n6QZqBg
The code to start this tutorial is on github here:
https://github.com/mobapptuts/recyclerview_image_gallery.git Tag camera2-write-swap-fix
or you can run this command
git clone --branch camera2-write-swap-fix https://github.com/mobapptuts/recyclerview_image_gallery.git
The corresponding web article can be found here https://www.nigeapptuts.com/?p=438
In this tutorial we will cover:
- Creating a folder to contain the raw images
- Creating a new method that creates new files for the raw image to be written to
- Checking that the camera device supports raw
- Finding the largest raw image size
- Creating a new instance of the image reader & image available listener for the raw images
- Adding the raw image reader surface to the create capture session
API's covered
- File
- CameraCharacteristics
- CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES
- CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_RAW
- ImageReader.newInstance
- ImageReader.getSurface
- ImageFormat.RAW_SENSOR
- CameraDevice.createCaptureSession
For much more information checkout
Website - https://www.nigeapptuts.com
Twitter - https://twitter.com/MobAppTuts
Facebook - https://www.facebook.com/nigeapptuts
Google+ - https://plus.google.com/b/115884642086760882044
Pinterest - https://www.pinterest.com/mobapptuts/
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.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Android camera2 api raw image capture - Part 1 Setup», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.