参考:
Luckfox-Pico/Luckfox-Pico-RV1103/Luckfox-Pico-pinout/CSI-Camera
下载源码
其中源码位置:https://github.com/luckfox-eng29/luckfox_pico_rtsp_opencv
使用git clone由于项目比较大,网络不稳定总断,所以直接下载的zip包
编译
需提前下载sdk:https://github.com/LuckfoxTECH/luckfox-pico / https://gitee.com/LuckfoxTECH/luckfox-pico
export LUCKFOX_SDK_PATH=< 你的 Luckfox-pico SDK 路径> # 比如export LUCKFOX_SDK_PATH=/home/cw/zhouying/RV1103/luckfox-pico cd luckfox_pico_rtsp_opencv-master mkdir build cd build cmake .. make && make install
将编译生成的文件夹上传到开发板
cd luckfox_pico_rtsp_opencv-master adb push luckfox_rtsp_opencv_demo /
连接开发板后运行程序
如果不关闭系统默认程序,则运行自己的程序的时候会报错
bind socket to address failed : address already in use
adb shell # 运行前先关闭系统默认rkipc程序 cd /oem/usr/bin ./RkLunch-stop.sh # 运行自己的程序 cd /luckfox_rtsp_opencv_demo ./luckfox_rtsp_opencv
参考Luckfox-Pico/Luckfox-Pico-RV1103/Luckfox-Pico-pinout/CSI-Camera使用VLC软件就能看到摄像头实时画面了