awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
android avatar

android/camera-samples

0
View on GitHub↗
5,422 stars·2,418 forks·Kotlin·Apache-2.0·16 views

Camera Samples

A collection of reference implementations and code samples for integrating Android camera hardware and software APIs. The project provides demonstrations for using both the Jetpack CameraX library and the low-level Camera2 API to implement photo and video capture features.

The repository includes specialized implementations for high-performance recording, such as high-frame-rate slow motion and high-dynamic-range video. It also features examples of machine learning vision, demonstrating how to analyze live camera frames for object detection and QR code scanning.

The project covers broad imaging capabilities, including still image acquisition, live viewfinder rendering, and video quality configuration. It further details the use of manufacturer-specific hardware extensions to apply effects like bokeh, night mode, and HDR.

The samples include utilities for coordinate mapping to render visual overlays and event monitoring to track recording states.

Features

  • Camera Integrations - Provides comprehensive reference implementations for integrating Android camera hardware to capture photos and videos.
  • Real-Time Object Detection - Provides reference implementations for identifying and tracking objects within live camera streams using machine learning.
  • Real-Time Frame Processors - Implements components that intercept live camera frames to perform real-time detection and analysis using machine learning models.
  • Mobile Vision Implementations - Provides sample code for analyzing live camera frames using ML models for object detection and QR code scanning.
  • Video Encoders - Streams raw camera frames into a media encoder to produce compressed video files for local storage.
  • Real-Time Model Inference on Frames - Processes live camera frames for real-time object detection, QR code scanning, and machine learning inference.
  • Camera API Implementations - Provides architectural best practices and utility tools to reduce boilerplate when implementing Android camera features.
  • Camera2 API References - Provides examples for utilizing the low-level Camera2 API to control fine-grained hardware settings and manual image capture.
  • CameraX API Implementations - Provides code samples for using the Jetpack CameraX library to build photo and video capture features.
  • Video Profile Configuration - Sets the dimensions, frame rate, and color format based on the hardware capabilities of the device.
  • Image Capture - Captures still images in standard or raw formats to preserve unprocessed sensor data.
  • Camera and Video Capture - Captures video frames using repeating requests and encodes them into a standard video file.
  • Android Lifecycle Management - Uses Android-specific lifecycle-aware components to automate the opening and closing of camera hardware resources.
  • Camera Preview Embeddings - Renders a real-time camera feed to a view with options for stabilization and portrait filters.
  • Android Camera API Examples - Offers a comprehensive set of reference implementations demonstrating best practices for Android camera API integration.
  • Bounding Box Visualizers - Includes utilities for overlaying detection coordinates as bounding boxes onto the live camera preview.
  • Camera QR Code Scanners - Detects QR codes within a camera stream and extracts encoded data to trigger specific actions.
  • Hardware Vendor Abstractions - Provides a standardized interface to access manufacturer-specific hardware processing pipelines for bokeh and night mode.
  • Local File Storage - Records video streams to a local file or storage based on a specified quality selector.
  • Media Session Recording Controls - Controls the video recording process by starting, pausing, and stopping the capture session.
  • Concurrent Capture Sessions - Manages a single hardware session that simultaneously routes data to a screen preview and a file recorder.
  • HDR Viewfinder Rendering - Composites alternating short and long exposure frames in real time to produce high-dynamic-range previews.
  • High-Performance Video Capture - Implements high-speed slow-motion recording and high-dynamic-range video capture using Android hardware.
  • High-Frame-Rate Capture - Provides reference guides for recording high-frame-rate video sessions to enable slow-motion playback.
  • HDR Video Capture - Demonstrates the capture of high dynamic range video and the rendering of real-time HDR viewfinders.
  • High Frame Rate Recording - Records high-speed video within a constrained capture session to create smooth slow-motion playback.
  • Exposure Compositing - Merges short and long exposure frames in real time to create a high-dynamic-range viewfinder.
  • Screen Space Coordinate Mappings - Translates raw camera sensor coordinates into screen pixel coordinates to render visual bounding boxes over a live preview.
  • Manufacturer Hardware Extensions - Demonstrates how to use manufacturer-specific extensions to apply professional effects such as bokeh, night mode, and HDR.
  • Hardware Extension Effects - Applies manufacturer-specific enhancements like Bokeh, HDR, or Night mode to still image captures.
  • Enhanced Image Captures - Captures enhanced still images by leveraging hardware-specific camera extensions through a system interface.
  • Mobile Video Recording - Records high-dynamic-range video when the hardware supports the capability.
  • Repeating Capture Loops - Issues continuous capture requests to the camera hardware to maintain a steady stream of frames for preview and recording.
  • Frame Memory Buffers - Implements buffers that maintain video frames to facilitate real-time machine learning inference and QR scanning.
  • Code Samples And Demos - Multiple samples showing the best practices in camera APIs on Android.

Star history

Star history chart for android/camera-samplesStar history chart for android/camera-samples

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Camera Samples

Similar open-source projects, ranked by how many features they share with Camera Samples.
  • getstream/vision-agentsGetStream avatar

    GetStream/Vision-Agents

    6,029View on GitHub↗
    Pythonagentic-aiagentsai
    View on GitHub↗6,029
  • react-native-camera/react-native-camerareact-native-camera avatar

    react-native-camera/react-native-camera

    9,638View on GitHub↗

    This project provides cross-platform programmatic interfaces and UI components for integrating camera hardware into mobile applications. It serves as a tool for implementing image and video capture, as well as specialized scanning and recognition tasks. The library includes specialized capabilities for computer vision, including a barcode scanner for decoding various barcode types, a face detection tool to identify human faces in a live feed, and an optical character recognition engine for extracting written text from the camera stream. The system covers hardware configuration and control, i

    Javacameraface-detectionreact-native
    View on GitHub↗9,638
  • camerakit/camerakit-androidCameraKit avatar

    CameraKit/camerakit-android

    5,391View on GitHub↗

    Camerakit-android is a library and API wrapper that provides a consistent interface for photo and video capture across Android Camera 1 and 2 APIs. It functions as a media capture library that standardizes hardware access and provides a unified system for recording images and video across different operating system versions. The project includes a camera preview component that automatically scales and crops camera output to fit custom view dimensions. It also provides a camera control toolkit for managing continuous autofocus, tap-to-focus interactions, and pinch-to-zoom gestures. The toolki

    Candroidandroid-libraryc-plus-plus
    View on GitHub↗5,391
  • crazycodeboy/takephotocrazycodeboy avatar

    crazycodeboy/TakePhoto

    7,230View on GitHub↗

    TakePhoto is an Android media capture framework and image processing library designed to manage photo acquisition and manipulation. It provides a toolkit for capturing new images via the device camera and selecting existing images from the system gallery or local file storage. The framework distinguishes itself through automatic activity and session state restoration, which recovers the capture process after the system recycles an activity. It also includes a unified handler for managing runtime media permissions for camera and storage access across different Android versions. The library co

    Javaandroidandroid-croppercamera
    View on GitHub↗7,230
See all 30 alternatives to Camera Samples→

Frequently asked questions

What does android/camera-samples do?

A collection of reference implementations and code samples for integrating Android camera hardware and software APIs. The project provides demonstrations for using both the Jetpack CameraX library and the low-level Camera2 API to implement photo and video capture features.

What are the main features of android/camera-samples?

The main features of android/camera-samples are: Camera Integrations, Real-Time Object Detection, Real-Time Frame Processors, Mobile Vision Implementations, Video Encoders, Real-Time Model Inference on Frames, Camera API Implementations, Camera2 API References.

What are some open-source alternatives to android/camera-samples?

Open-source alternatives to android/camera-samples include: getstream/vision-agents. react-native-camera/react-native-camera — This project provides cross-platform programmatic interfaces and UI components for integrating camera hardware into… camerakit/camerakit-android — Camerakit-android is a library and API wrapper that provides a consistent interface for photo and video capture across… crazycodeboy/takephoto — TakePhoto is an Android media capture framework and image processing library designed to manage photo acquisition and… lyuwenyu/rt-detr — RT-DETR is a real-time object detection model based on the detection transformer architecture. It is implemented as a… mrousavy/react-native-vision-camera — This project is a cross-platform mobile camera framework and real-time computer vision library. It provides a…