本文來源電子發燒友社區,作者:大菠蘿Alpha, 帖子地址:https://bbs.elecfans.com/jishu_2309330_1_1.html
前面文章已經在Ubuntu20.04的系統上搭建交叉編譯環境,并且在EASY EAI Nano開發板上執行了第一個程序。
一、下載源碼
使用git工具,將遠程倉庫clone至本地:
git clone https://github.com/EASY-EAI/EASY-EAI-Toolkit-C-Solution.git
toolkit內置好幾個AI案例,選擇solu-helmetDetect。
root@EliteDesk:/media/rv1126/EASY-EAI-Toolkit/EASY-EAI-Toolkit-C-Solution$ ls
easyeai-api LICENSE README_CN.md README.md solu-EAI-box solu-faceDetect solu-faceRecognition solu-helmetDetect solu-personDetect solu-qrdecode solu-rtspMulitPlayer
二、編譯源碼
開發環境中執行./build.sh
,過程&結果如下圖:
在Release目錄下生成了solu-helmetDetect可執行程序。
三、上傳
需要上傳2個文件,一個是前面生成的solu-helmetDetect文件,還有一個是官方提供的模型文件helmet_detect.model。
四、測試運行
在EASY EAI Nano開發板上執行./solu-helmetDetect
。
[root@EASY-EAI-NANO:/userdata/Solu]# chmod 777 solu-helmetDetect
[root@EASY-EAI-NANO:/userdata/Solu]# ./solu-helmetDetect
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
[17:30:48.060264][CAMHW]:XCAM ERROR CamHwIsp20.cpp:928: No free isp&ispp needed by fake camera!
Rga built version:1.04 13a52df+2022-06-22 17:27:40
Had init the rga dev ctx = 0x57e68
Rga built version:1.04 13a52df+2022-06-22 17:27:40
##RKMEDIA Log level: 2
[RKMEDIA][SYS][Info]:text is all=2
[RKMEDIA][SYS][Info]:module is all, log_level is 2
ID: 1, sensor_name is m01_f_gc2093 1-007e, iqfiles is /etc/iqfiles
rk_aiq_uapi_sysctl_init/prepare succeed
rk_aiq_uapi_sysctl_start succeed
SAMPLE_COMM_ISP_SetFrameRate start 25
SAMPLE_COMM_ISP_SetFrameRate 25
[RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[1:1]:rkispp_scale0, 1920x1080 Start...
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
[RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev5
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
[RKMEDIA][SYS][Info]:RKAIQ: model(rkisp1): isp_info(1): isp-subdev entity name: /dev/v4l-subdev9
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media3
[RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media4
[RKMEDIA][SYS][Info]:RKAIQ: model(rkispp1): ispp_info(1): ispp-subdev entity name: /dev/v4l-subdev1
[RKMEDIA][SYS][Info]:#V4l2Stream: camraID:1, Device:rkispp_scale0
[RKMEDIA][SYS][Warn]:camera_id: 1, chn: rkispp_scale0
[RKMEDIA][SYS][Warn]:camera_id: 1, chn: rkispp_scale0, idx: 0
[RKMEDIA][SYS][Info]:#V4l2Stream: camera id:1, VideoNode:/dev/video31
Using mplane plugin for capture
[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video31, fd 89
[RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[1:1]:rkispp_scale0, 1920x1080 End...
[RKMEDIA][SYS][Info]:RK_MPI_VO_CreateChn: Enable VO[1] Start...
[RKMEDIA][SYS][Info]:conn id : 56, enc id: 55, crtc id: 53, plane id: 52, w/h: 720,1280, fps: 58
[RKMEDIA][SYS][Info]:RK_MPI_VO_CreateChn: Enable VO[1] End!
[RKMEDIA][SYS][Info]:RK_MPI_VO_CreateChn: Enable VO[0] Start...
[RKMEDIA][SYS][Info]:conn id : 56, enc id: 55, crtc id: 53, plane id: 54, w/h: 720,1280, fps: 58
[RKMEDIA][SYS][Info]:RK_MPI_VO_CreateChn: Enable VO[0] End!
[RKMEDIA][SYS][Info]:RK_MPI_RGA_CreateChn: Enable RGA[0], Rect<0,0,720,1280> Start...
[RKMEDIA][SYS][Info]:FilterFlow:rkrga: Enable BufferPool! memtype:hw_mem, memcnt:4
[RKMEDIA][SYS][Info]:Opened DRM device /dev/dri/card0: driver rockchip version 2.0.0.
[RKMEDIA][SYS][Info]:RK_MPI_RGA_CreateChn: Enable RGA[0], Rect<0,0,720,1280> End...
#Bind rga[0] to VM[0]:Chn[0]....
[RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[RGA]:Chn[0] to Mode[VMIX]:Chn[0]...
#Bind VMX[0] to VO[0]....
[RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[VMIX]:Chn[0] to Mode[VO]:Chn[0]...
[RKMEDIA][SYS][Warn]:RK_MPI_SYS_Bind: SrcChn:VMIX[0]:Chn[x] status(3) invalid!
librknn_runtime version 1.7.1 (97198ce build: 2021-11-24 09:32:17 base: 1131)
因為沒有安全帽,網絡上找了個戴安全帽的照片,哈哈:)
檢測到安全帽:
沒有帶安全帽:
業務應用打印的log。
-
AI
+關注
關注
87文章
30239瀏覽量
268474 -
nano
+關注
關注
1文章
154瀏覽量
30592 -
開發板試用
+關注
關注
3文章
301瀏覽量
2041
發布評論請先 登錄
相關推薦
評論