android/camera-samples

Multiple samples showing the best practices in camera APIs on Android.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 9 minutes ago
Added to GitGenius on September 12th, 2026
Created on May 5th, 2019
Open Issues & Pull Requests: 113 (+0)
GitHub issues: Enabled
Number of forks: 2,412
Total Stargazers: 5,456 (+0)
Total Subscribers: 205 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Android Camera Samples is a collection of sample Android applications demonstrating best practices for the Camera2 and CameraX APIs.

The repository addresses the challenge of learning modern Android camera development by providing a curated catalog of focused, self-contained examples. Each sample isolates a single camera feature—from basic photo capture to advanced capabilities like HDR video, RAW sensor access, and machine learning integration—while reusing a shared camera-scaffolding layer to minimize boilerplate code. The samples are built with Compose-first architecture and organized by category including Images, Video, ML, Graphics, Extensions, and Controls, with CameraX examples listed before their Camera2 equivalents.

Developers should choose this repository if they need practical reference implementations for specific camera features rather than comprehensive API documentation. It suits projects targeting modern Android devices where CameraX is preferred for its simplified API and backward compatibility, though Camera2 samples are included for advanced use cases requiring lower-level control. The catalog format makes it straightforward to find examples relevant to your feature set without wading through unrelated code.

The project maintains a well-organized structure with samples covering a broad range of capabilities from fundamental operations like tap-to-focus and video recording to specialized features such as slow-motion capture, concurrent front-and-back camera preview, RAW sensor access with DNG export, and real-time machine learning integration for barcode detection and image labeling. The samples demonstrate both CameraX's Recorder API and Camera2's MediaRecorder approach, as well as advanced topics like 10-bit HDR video, gain-map Ultra HDR capture, live color filtering through ImageAnalysis, and manual exposure controls. The repository requires only a recent Android Studio and a device or emulator to run, with no external service dependencies.