- 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 Pico
Luckfox Pico Mini A
Luckfpx Pico Miini B
Luckfox Pico Plus
- RV1106:
Luckfox Pico Pro
Luckfox Pico Max
Luckfox Pico Ultra
Luckfox Pico Ultra W
- Set up environment variables
Note: Use absolute path.
export LUCKFOX_SDK_PATH=<luckfox-pico SDK path>
- 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 example to compile1) 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.sh
to disable the default background apprkicp
running 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.