- This example is based on RKMPI and Opencv-Mobile for image encoding and streaming.
- This example uses RKNN for image recognition inference.
- Example code for video capture and streaming specifically developed for Luckfox Pico series development boards.
| DEMO | CPU | system | Camera |
|---|---|---|---|
| luckfox_pico_rtsp_opencv | RV1103(resolution adjustment required),rv1106 | buildroot | sc3336 |
| luckfox_pico_rtsp_opencv_capture | RV1103,RV1106 | buildroot | sc3336 |
| luckfox_pico_rtsp_retinaface | RV1103,RV1106 | buildroot | sc3336 |
| luckfox_pico_rtsp_retinaface_osd | RV1103,RV1106 | buildroot | sc3336 |
| luckfox_pico_rtsp_yolov5 | RV1106 | buildroot | sc3336 |
- RV1103:
Luckfox PicoLuckfox Pico Mini ALuckfpx Pico Miini BLuckfox Pico Plus - RV1106:
Luckfox Pico ProLuckfox Pico MaxLuckfox Pico UltraLuckfox Pico Ultra W
- Set up environment variables
Note: Use absolute path.
# uclibc export LUCKFOX_SDK_PATH=<luckfox-pico SDK path> # glibc export GLIBC_COMPILER=<gcc bin path>/arm-linux-gnueabihf- - Obtain the repository source code and set the execution permissions for the automated build script
chmod a+x ./build.sh ./build.sh - After executing
./build.sh, select the type of libc1) uclibc 2) glibc Enter your choice [1-2]: - Select the example to compile
1) luckfox_pico_rtsp_opencv 2) luckfox_pico_rtsp_opencv_capture 3) luckfox_pico_rtsp_retinaface 4) luckfox_pico_rtsp_retinaface_osd 5) luckfox_pico_rtsp_yolov5 Enter your choice [1-5]:
- After compilation, the corresponding deployment folder will be generated in the install directory
luckfox_pico_rtsp_opencv_capture_demo luckfox_pico_rtsp_retinaface_demo luckfox_pico_rtsp_yolov5_demo luckfox_pico_rtsp_opencv_demo luckfox_pico_rtsp_retinaface_osd_demo - Upload the generated deployment folder to the Luckfox Pico (using adb, ssh, etc.). On the board, enter the folder and run the demo
Note: Do not alter the structure of the deployment folder.
# On the Luckfox Pico board, <Demo Target> is the executable program within the deployment folder chmod a+x <Demo Target> ./<Demo Target> - Use VLC to open the network stream
rtsp://172.32.0.93/live/0(adjust the IP address as needed to retrieve the image)
- Before running the demo, execute
RkLunch-stop.shto disable the default background apprkicprunning on luckfox-pico, which occupies the camera. - Due to the limited system resources of the RV1103, please reduce the video capture resolution if it does not run properly.
- Due to the update of the Rockit library, the VPSS component can no longer extract data frames independently. The image color format conversion will be replaced by OpenCV-mobile.





