# Camera encode, object detection, and display Source: [https://docs.qualcomm.com/doc/80-70018-50/topic/camera-encode-file-detection-yolov8-overlay-display.html](https://docs.qualcomm.com/doc/80-70018-50/topic/camera-encode-file-detection-yolov8-overlay-display.html) The **gst-camera-two-stream-encode-file-detection-display.py** application encodes the camera stream and saves it to a file. The application uses a YOLOv8 LiteRT model to identify the objects in a scene from a camera stream. The application overlays the bounding boxes over the detected objects and displays the results. Figure : Pipeline for camera encode and object detection  For information about the plugins used in this pipeline, see [Pipeline flow](https://docs.qualcomm.com/doc/80-70018-50/topic/camera-encode-file-detection-yolov8-overlay-display.html#camera-encode-file-detection-yolov8-overlay-display__section_mty_hyk_bdc). ## Run the application 1. Ensure that you complete the [Prerequisites](https://docs.qualcomm.com/doc/80-70018-50/topic/prerequisites-for-python-sample-applications.html). 2. Run the camera encode and object detection script on the target device: gst-camera-two-stream-encode-file-detection-display.pyCopy to clipboard To display the available help options, run the following command: gst-camera-two-stream-encode-file-detection-display.py -hCopy to clipboard The following are the default files in the Python script: Table : Default model and label files for gst-camera-two-stream-encode-file-detection-display.py | Files | Directory | | :--- | :--- | | Detection model (YOLOv8) | /etc/models/YoloV8N\_Detection\_Quantized.tflite | | Detection labels (same for both models) | /etc/labels/yolov8n.labels | ## Expected output The output is saved at /etc/media/test.mp4. ## Pipeline flow | Process | Description | | --- | --- | | [qtiqmmfsrc](https://docs.qualcomm.com/doc/80-70018-50/topic/qtiqmmfsrc.html) | Collects two video streams from the camera:
The object detection model uses this tensor
stream for inferencing.
In
this use case, qtimlvdetection does the following: