camera-samples
5,472
Stars
2,418
Forks
205
Watchers
115
Open Issues
未知
许可证
Kotlin
语言
2019-05-05
创建时间
2026-11-03
最近更新
项目能做什么
展示 Android 相机 API 最佳实践的多个示例项目。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Android Camera Samples Catalog A single, stand-alone Android app that showcases the **Camera2** and **CameraX** APIs through a catalog of small, self-contained, **Compose-first** samples. Each sample focuses on one feature and reuses a shared camera-scaffolding layer, so adding a new sample means writing the feature — not the boilerplate. ## Screenshots The home catalog in the "Console" theme — a violet accent, monospace metadata, a bordered featured card, and a dense 2-column grid. The filter pills narrow the catalog by category, and samples are grouped CameraX-first, Camera2 below. <p align="center"> <img src="docs/screenshots/home.png" width="260" alt="Home catalog — all samples" /> <img src="docs/screenshots/home_filtered.png" width="260" alt="Home catalog — the ML category" /> </p> ## How to run 1. Clone the repository. 2. Open it in a recent Android Studio. 3. Run the `app` configuration on a device or emulator. Camera-dependent samples (extensions, slow-motion, ML) behave best on a physical device; emulators with a virtual camera cover the basics. No Firebase / `google-services.json` is required. ## Samples Filter the catalog by category (**Images / Video / ML / Graphics / Extensions / Controls**) on the home screen. Within each view, **CameraX** samples are listed first and **Camera2** below. | Sample | API | What it shows | | --- | --- | --- | | Take a Photo | CameraX / Camera2 | Preview, tap-to-focus, capture a still | | Take a Video | CameraX (Recorder) / Camera2 (MediaRecorder) | Record video to `DCIM/Camera` | | Pause/Resume | CameraX (Recorder) | Pause and resume a recording mid-capture | | Slow Motion | Camera2 | High-speed (constrained) recording | | HDR Video | CameraX / Camera2 | Record & play back 10-bit HDR video (`DynamicRange` / `DynamicRangeProfiles`) | | Video Stabilization | CameraX | Steadier footage via preview + video stabilization | | Flip While Recording | CameraX | Switch front/back cameras without interrupting the recording | | QR Scanner | CameraX / Camera2 + ML Kit | Real-time barcode/QR detection with overlay | | Image Labeling | CameraX + ML Kit | Real-time on-device labels via `ImageAnalysis` | | Luminosity | CameraX | Scene-brightness meter from the `ImageAnalysis` Y plane | | Green Screen | CameraX + ML Kit | Concurrent cameras: segment the front-camera subject over the live back camera | | Extensions | CameraX / Camera2 | Night / Bokeh / HDR / Face Retouch / Auto | | Ultra HDR | CameraX | Gain-map Ultra HDR (`JPEG_R`) capture + a viewer to compare SDR / gain map / Ultra HDR | | Effects | CameraX | Live color filters (grayscale, sepia, invert, …) via `ImageAnalysis` + `ColorMatrix` | | Viewfinder Effects | Camera2 | Real-time frame processing on the live preview | | Concurrent Camera | CameraX | Front + back preview at once (picture-in-picture) | | RAW / DNG | Camera2 | `RAW_SENSOR` → DNG via `DngCreator`, then an in-app viewer/editor (re-expose, re-white-balance) |阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 45.4 分。该项目在“个人可实施性”维度得 40 分,“付费可能性”维度得 32.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 camera-samples 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| saki4510t/UVCCamera | 中文介绍暂未生成 library and sample to access to UVC web camera on non-rooted |
3,216 | C |
| AgoraIO/Basic-Video-Call | 中文介绍暂未生成 Sample app to join/leave a channel, mute/unmute, enable/disa |
714 | C++ |
| huwb/volsample | 中文介绍暂未生成 Structured Volume Sampling - sample placement algorithm for |
656 | C# |
| Talentica/AndroidWithKotlin | 中文介绍暂未生成 :rocket: These are android sample projects which are written |
567 | Kotlin |
| acfr/cam_lidar_calibration | 中文介绍暂未生成 (ITSC 2021) Optimising the selection of samples for robust l |
550 | C++ |
| oculus-samples/Unity-PassthroughCameraApiSamples | 中文介绍暂未生成 A Sample Project for Passthrough Camera API in Unity. |
518 | C# |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2019-05-05,近 30 天仍在推送 |
| 社区活跃 | Star 5,472 / Fork 2,418 / Issue 115(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/android/camera-samples.git cd camera-samples # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。