Pedestrian detection
This test program will pull camera data, add pedestrian detection algorithm, and use VLC and other tools to pull the stream in real time to view the effect.
Compile
Pedestrian detection program source code location:
Duo256M and DuoS:sample_vi_od.c
Refer to https://github.com/milkv-duo/duo-tdl-examples/blob/master/README-zh.md to compile the example program.
Upload the test program and model files to Duo
- Refer to the method in the Run Duo section to install the system
To download the v2 version, please visit: https://github.com/milkv-duo/duo-buildroot-sdk-v2/releases/tag/v2.0.0
- Refer to the method in the Camera section to connect the camera and power on
Upload the compiled sample_vi_od to the Duo development board through the scp command on the computer:
scp sample_vi_od [email protected]:/root/
Download cvimodel for pedestrian detection:
https://github.com/sophgo/tdl_models/blob/main/cv181x/mobiledetv2-pedestrian-d0-ls-448.cvimodel
Use scp to upload cvimodel to Duo development board.
Run the example
Log in to Duo's terminal via the serial port or ssh .
Add executable permissions to the test program in Duo's terminal
chmod +x sample_vi_od