Home

Awesome

Camera Samples Repository

This repository contains a set of individual Android Studio projects to help you get started with the CameraX and Camera2 APIs in Android.

Samples

SampleDescription
CameraXBasicDemonstrates how to use CameraX APIs.
CameraXAdvancedDemonstrates how to use CameraX APIs with TFLite and others
CameraXVideoDemonstrates how to use CameraX VideoCapture API.
CameraX-MLKitDemonstrates how to use CameraX's MlKitAnalyzer to build a QR-code scanner.
Camera2BasicDemonstrates capturing JPEG, RAW and DEPTH images, e.g. unprocessed pixel data directly from the camera sensor.
Camera2SlowMotionDemonstrates capturing high-speed video in a constrained camera capture session.
Camera2VideoDemonstrates recording video using the Camera2 API and MediaRecorder.
Camera2ExtensionsDemonstrates Camera2 extension live preview and still capture.
CameraXExtensionsDemonstrates CameraX extension live preview and still capture.
HdrViewfinderDemonstrates use of RenderScript to display a live HDR feed from camera frames using Camera2 API.