37 lines
1015 B
Markdown
37 lines
1015 B
Markdown
|
|
Android CameraLive
|
|
==================
|
|
|
|
This app is using the Camera2 API to display the camera preview with a JPEG, DEPTH
|
|
or RAW frame.
|
|
|
|
Introduction
|
|
------------
|
|
|
|
The [Camera2 API][1] allows users to capture RAW images, i.e. unprocessed pixel data
|
|
directly from the camera sensor that has not yet been converted into a format and
|
|
colorspace typically used for displaying and storing images viewed by humans.
|
|
|
|
This app displays a live camera preview in a TextureView and is based on the
|
|
[Camera2Basic][2] example.
|
|
|
|
[1]: https://developer.android.com/reference/android/hardware/camera2/package-summary.html
|
|
[2]: https://github.com/android/camera-samples/tree/main/Camera2Basic
|
|
|
|
Pre-requisites
|
|
--------------
|
|
|
|
- Android SDK 29+
|
|
- Android Studio 3.5+
|
|
|
|
Screenshots
|
|
-----------
|
|
|
|
<img src="screenshots/main.png" height="400" alt="Screenshot"/>
|
|
|
|
Getting Started
|
|
---------------
|
|
|
|
This sample uses the Gradle build system. To build this project, use the
|
|
"gradlew build" command or use "Import Project" in Android Studio.
|