# CameraDemo **Repository Path**: chenjim/CameraDemo ## Basic Information - **Project Name**: CameraDemo - **Description**: Camera使用相关Demo示例, 分支google同步与 https://github.com/android/camera-samples 的main分支 - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/chenjim/CameraDemo - **GVP Project**: No ## Statistics - **Stars**: 30 - **Forks**: 23 - **Created**: 2020-03-30 - **Last Updated**: 2025-06-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: CameraDemo, CameraSamples ## README # Camera Samples Repository ---- 在 [camera-samples](https://github.com/android/camera-samples) 基础增加 [部分内容](https://gitee.com/chenjim/CameraDemo/commits/master?user=chenjim) ---- This repository contains a set of individual Android Studio projects to help you get started with the [CameraX](https://developer.android.com/training/camerax) and [Camera2](https://developer.android.com/training/camera2) APIs in Android. ## Samples | Sample | Description | | ----------------------------------------- | ------------ | | [DualAudioRecord](DualAudioRecord) | 使用AudioRecord同时录制两路音频,此示例可以用来检测设备是否支持 | | [DualCamera](DualCamera) | 同时打开两个Camera并通过onPreviewFrame获取YUV数据回调 | | [OpenGLRecorder](OpenGLRecorder) | Camera 通过OpenGL添加水印并录制视频 | | [grafika](https://github.com/google/grafika)| [图形框架](https://source.android.com/docs/core/graphics/architecture),比如 [使用MediaCodec播放视频](https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/MoviePlayer.java)、[视频编码](https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/VideoEncoderCore.java)、[离屏(FBO)录制](https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/RecordFBOActivity.java) 等,很强最大的示例 | | [CameraXBasic](CameraXBasic) | Demonstrates how to use CameraX APIs. | | [CameraXAdvanced](CameraXAdvanced) | Demonstrates how to use CameraX APIs with TFLite and others | | [CameraXVideo](CameraXVideo) | Demonstrates how to use CameraX VideoCapture API. | | [CameraX-MLKit](CameraX-MLKit) | Demonstrates how to use CameraX's MlKitAnalyzer to build a QR-code scanner. | | [Camera2Basic](Camera2Basic) | Demonstrates capturing JPEG, RAW and DEPTH images, e.g. unprocessed pixel data directly from the camera sensor. | | [Camera2SlowMotion](Camera2SlowMotion) | Demonstrates capturing high-speed video in a constrained camera capture session. | | [Camera2Video](Camera2Video) | Demonstrates recording video using the Camera2 API and MediaRecorder. | | [Camera2Extensions](Camera2Extensions) | Demonstrates Camera2 extension live preview and still capture. | [CameraXExtensions](CameraXExtensions) | Demonstrates CameraX extension live preview and still capture. | [HdrViewfinder](HdrViewfinder) | Demonstrates use of RenderScript to display a live HDR feed from camera frames using Camera2 API. |