# android/camera-samples

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

Repository: https://github.com/android/camera-samples
Canonical: https://ross.abutalabs.com/products/camera-samples
Language: Kotlin
License Family: other
Topics: kotlin, samples, sample
Last push: 2026-08-10T18:50:56+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 2677, "days_push": 23, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5453, forks 2419 (observed 2026-08-28T04:09:19.037960+00:00)

## What it is
A single stand-alone Android app from Google that catalogs small, self-contained samples demonstrating the Camera2 and CameraX APIs using Jetpack Compose. Each sample focuses on one camera feature (photo, video, HDR, QR scanning, RAW/DNG, extensions) built on a shared scaffolding layer.

## Use cases
- learn how to capture photos with CameraX on Android
- record video and implement pause/resume in an Android app
- build a real-time QR code scanner with the camera
- capture RAW/DNG images and process them in-app
- implement 10-bit HDR video recording on Android
- run concurrent front and back camera previews
- apply camera extensions like Night, Bokeh, and HDR

## When to choose
- you are learning or teaching Android camera APIs with modern Kotlin and Compose
- you need reference implementations for a specific camera feature like slow motion or Ultra HDR
- you want best-practice patterns for CameraX and Camera2 in one runnable app

## When to avoid
- you need a production-ready camera library rather than sample code
- you target platforms other than Android
- you need a permissively licensed codebase to copy directly, since no license is specified

## Facets
- artifact type: learning-resource
- maturity: active
- function: image-processing, computer-vision, video-processing, ui-components
- domain: mobile-development, computer-vision, android-tools, tutorials
- platform: jvm
- tags: camera2, camerax, jetpack-compose, sample-app, android-camera, ml-kit, hdr-video, qr-scanning, android, mobile

## Member repositories
- android/camera-samples (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:19.037960+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:56:48.769817+00:00, confidence not recorded.
  - readme: https://github.com/android/camera-samples (fetched 2026-08-28T04:09:19.037960+00:00, sha 0460b0d8044f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
