# 摄像头应用示例

Source: [https://docs.qualcomm.com/doc/80-70017-50SC/topic/camera-sample-applications.html](https://docs.qualcomm.com/doc/80-70017-50SC/topic/camera-sample-applications.html)

摄像头的示例程序为单流和多流场景、预览和快照、配置和属性的动态更新以及 Qualcomm Linux 摄像头的各种其他功能提供了自定义用例。

## 示例应用程序支持的输入源

Table : 支持的输入源

| SoC | 摄像头输入 | 文件输入 | RTSP 输入 |
| :--- | :--- | :--- | :--- |
| QCS6490 | ✔ | ✔ | ✔ |
| QCS9075 | ❌ | ✔ | ✔ |
| QCS8275 | ❌ | ✔ | ✔ |

- **[单路摄像头流](https://docs.qualcomm.com/doc/80-70017-50SC/topic/gst-camera-single-stream-example.html)**  

**gst-camera-single-stream-example** 应用程序可以使用具有各种输出（包括预览、编码、YUV dump 和 RTSP 流传输）的单个摄像头。
- **[USB 摄像头](https://docs.qualcomm.com/doc/80-70017-50SC/topic/usb-camera.html)**  

 **gst-usb-single-camera-app** 从连接到 Qualcomm EVK 的 USB 网络摄像头传输视频。该网络摄像头应可作为 /dev/videoX 设备访问。
- **[多摄像头流](https://docs.qualcomm.com/doc/80-70017-50SC/topic/gst-multi-camera-stream-example.html)**  

**gst-multi-camera-example** 应用程序可让您同时从两个摄像头传感器进行流传输。该应用将摄像头馈送的图像数据并排进行合成并显示在屏幕上，或将视频流编码并存储到文件中。
- **[多个流](https://docs.qualcomm.com/doc/80-70017-50SC/topic/gst-multi-stream-example.html)**  

通过 **gst-multi-stream-example** 应用程序，用户可以从单个摄像头访问多个流，并将它们同时显示在屏幕上或以MP4格式保存。
- **[实时快照](https://docs.qualcomm.com/doc/80-70017-50SC/topic/gst-snapshot-stream-example.html)**  

使用 **gst-snapshot-stream-example** 程序可以创建两个流：预览流和快照流。预览流用于显示，而快照流拍摄快照并将其保存到 JPEG 格式的文件中。
- **[动态配置](https://docs.qualcomm.com/doc/80-70017-50SC/topic/dynamic-configuration.html)**  

Edge AI 应用的常见场景是在运行中更改图像分辨率，以最大限度地减少显示中的丢帧或间隔，或者重新配置摄像头来添加和删除多个流。动态配置示例程序使您能够执行这些更改。
- **[摄像头帧处理](https://docs.qualcomm.com/doc/80-70017-50SC/topic/gst-appsink-example.html)**  

使用 **gst-appsink-example** 应用程序可以从摄像头 pipeline 中提取缓存样本。这些缓存可以使用宽度和高度等选项来配置摄像头分辨率。
- **[摄像头元数据](https://docs.qualcomm.com/doc/80-70017-50SC/topic/gst-camera-metadata-example.html)**  

此 **gst-camera-metadata-example** 程序从一个菜单开始，允许您在摄像头插件的多个属性之间进行选择，即 video-metadata、static-metadata 和 image-metadata。
- **[摄像头流配置](https://docs.qualcomm.com/doc/80-70017-50SC/topic/camera-stream-configuration.html)**  

**gst-add-streams-as-bundle-example** 应用程序能够激活并将摄像头流配置为 bundle，而不是一次只配置一个流，从而减少配置新流的延迟。
- **[摄像头连拍](https://docs.qualcomm.com/doc/80-70017-50SC/topic/camera-burst-capture.html)**  

**gst-camera-burst-capture-example** 应用程序能够在 Burst 模式下拍照。它可以拍摄 5 个延迟为 10 秒的连拍，并将快照显示在屏幕上。
- **[摄像头切换](https://docs.qualcomm.com/doc/80-70017-50SC/topic/camera-switch.html)**  

**gst-camera-switch-example** 应用程序能够在两个摄像头之间切换。
- **[宽动态范围和电子图像稳定](https://docs.qualcomm.com/doc/80-70017-50SC/topic/dynamic-range-and-image-stabilization.html)**  

 **gst-camera-shdr-ldc-eis-example**  应用程序展示了交错高动态范围 (sHDR)、镜头畸变校正 (LDC) 和电子图像稳定         (EIS) 摄像头成像功能。关于更多详细信息，请参阅[摄像头成像特点概述](https://docs.qualcomm.com/doc/80-70017-50SC/topic/dynamic-range-and-image-stabilization.html#dynamic-range-and-image-stabilization__section_em1_gjq_pcc)。

**上一级主题：** [多媒体示例应用程序](https://docs.qualcomm.com/doc/80-70017-50SC/topic/multimedia-sample-applications.html)

Last Published: Nov 11, 2025

[Previous Topic
多媒体示例应用程序](https://docs.qualcomm.com/bundle/publicresource/80-70017-50SC/topics/multimedia-sample-applications.md) [Next Topic
单路摄像头流](https://docs.qualcomm.com/bundle/publicresource/80-70017-50SC/topics/gst-camera-single-stream-example.md)