BPU Sample Introduction
Sample Overview
BPU is a C language interface development code example located in the /app/cdev_demo directory, demonstrating how to call models already supported by BPU using C language. By referencing this example, users can understand and develop related applications.
Effect Demonstration
The BPU sample supports two scenarios: one with a camera, which fixedly uses the yolov5 model, and one without a camera, which performs inference on backfilled data.
The following shows the effect of using a camera with YOLOv5 for inference. The monitor displays that a water bottle has been detected.

The following shows the effect of using FCOS for inference. The monitor displays the inference results using an H264 file as input data.

Hardware Preparation
Hardware Connection
(1) YOLOv5 inference with camera
This example does not require a mouse or keyboard, so only a camera, HDMI display, Ethernet port, and power cable are connected here:

(2) Inference without camera using H264 stream, with results displayed on monitor.
This example does not require a mouse or keyboard, so only an HDMI display, Ethernet port, and power cable are connected here.

Quick Start
Code and Board Location
Navigate to the /app/cdev_demo/bpu location, where you can see two directories and a README.md file. The include directory contains the header files required for the sample models, while the src directory contains the program entry point and implementations of pre-processing, inference, post-processing, etc., for various models.
root@ubuntu:/app/cdev_demo/bpu# tree -L 1
.
├── include