努力-奋斗 发表于 2022-1-10 22:03:46

运行rkmedia_vi_get_frame_test demo报错

# rkmedia_vi_get_frame_test-a /oem/etc/iqfiles/ -w 1920
-h 1080 -d rkispp_scale0 -o /tmp/1080p.nv12 -c 10
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rkcif_dvp is null
media get entity by name: rkcif_mipi_lvds is null
media get entity by name: rkcif_dvp is null
media get entity by name: rkcif_lite_mipi_lvds is null
media get entity by name: rkcif_mipi_lvds is null
:XCAM ERROR CamHwIsp20.cpp:986: No free isp&ispp needed by fake camera!
Rga built version:1.04 13029c6+2021-12-23 18:50:44
#####Device: rkispp_scale0
#####Resolution: 1920x1080
#####Frame Count to save: 10
#####Output Path: /tmp/1080p.nv12
#CameraIdx: 0

#####Aiq xml dirpath: /oem/etc/iqfiles/

#bMultictx: 0

ID: 0, sensor_name is m01_f_imx307 1-001a, iqfiles is /oem/etc/iqfiles/
:XCAM ERROR Isp20PollThread.cpp:959: can't search id 0,_effecting_exp_mapsize is 0

:XCAM ERROR Isp20PollThread.cpp:959: can't search id 1,_effecting_exp_mapsize is 0

rk_aiq_uapi_sysctl_init/prepare succeed
rk_aiq_uapi_sysctl_start succeed
SAMPLE_COMM_ISP_SetFrameRate start 30
SAMPLE_COMM_ISP_SetFrameRate 30
##RKMEDIA Log level: 2
:text is all=2
:module is all, log_level is 2
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale0, 1920x1080 Start...
:RKAIQ: parsing /dev/media0
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev1
:RKAIQ: parsing /dev/media1
:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
:#V4l2Stream: camraID:0, Device:rkispp_scale0
:camera_id: 0, chn: rkispp_scale0
:camera_id: 0, chn: rkispp_scale0, idx: 0
:#V4l2Stream: camera id:0, VideoNode:/dev/video14
[ 1855.3Using mplane plugin for capture
70797] rkisp:#V4L2Ctx: open /dev/vipdeo14, fd 90
0: scale0:0x0 out of range:
[ 1855.370797]
[ 1855.37085:RK_MPI_VI_1EnableChn: Enable VI:rkispp_scale0, 1920x1080 End...
main initial finish
] rkispp0: scale0:0x0 out of range:
[ 1855.370851]
[ 1855.370869] rkispp0: scale0:0x0 out of range:
[ 1855.370869]
[ 1855.370885] rkispp0: scale0:0x0 out of range:
[ 1855.370885]
[ 1855.370910] rkispp0: scale0:0x0 out of range:
[ 1855.370910]
[ 1855.424747] rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
[ 1855.424784] rockchip-mipi-dphy-rx: data_rate_mbps 222
:Output first frame
Get Frame:ptr:0x990f0000, fd:91, size:3110400, mode:9, channel:0, timestamp:1855495635, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-0 to /tmp/1080p.nv12
Get Frame:ptr:0x98df3000, fd:92, size:3110400, mode:9, channel:0, timestamp:1855528950, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-1 to /tmp/1080p.nv12
Get Frame:ptr:0x98af6000, fd:93, size:3110400, mode:9, channel:0, timestamp:1855562336, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-2 to /tmp/1080p.nv12
Get Frame:ptr:0x990f0000, fd:91, size:3110400, mode:9, channel:0, timestamp:1855595674, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-3 to /tmp/1080p.nv12
Get Frame:ptr:0x98df3000, fd:92, size:3110400, mode:9, channel:0, timestamp:1855628980, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-4 to /tmp/1080p.nv12
Get Frame:ptr:0x98af6000, fd:93, size:3110400, mode:9, channel:0, timestamp:1855662333, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-5 to /tmp/1080p.nv12
Get Frame:ptr:0x990f0000, fd:91, size:3110400, mode:9, channel:0, timestamp:1855695680, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-6 to /tmp/1080p.nv12
Get Frame:ptr:0x98df3000, fd:92, size:3110400, mode:9, channel:0, timestamp:1855729012, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-7 to /tmp/1080p.nv12
Get Frame:ptr:0x98af6000, fd:93, size:3110400, mode:9, channel:0, timestamp:1855762344, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-8 to /tmp/1080p.nv12
Get Frame:ptr:0x990f0000, fd:91, size:3110400, mode:9, channel:0, timestamp:1855795646, ImgInfo:<wxh 1920x1080, fmt 0x4>
#Save frame-9 to /tmp/1080p.nv12
:RK_MPI_VI_DisableChn: Disable VI:rkispp_scale0, 1920x1080 Start...
[ 1856.429831] rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:0
[ 1857.450293] rkispp0: waiting on params stream off event timeout
:#SourceStreamFlow: stream off....
libv4l2: error dequeuing buf: Invalid argument
:rkispp_scale0, ioctl(VIDIOC_DQBUF): Invalid argument
:#SourceStreamFlow: read thread exit sucessfully!
:#V4L2Ctx: close , fd 90
:#V4L2Stream: v4l2 ctx reset to nullptr!
:#SourceStreamFlow: stream reset sucessfully!
:SourceFlow:v4l2_capture_stream quit
:RK_MPI_VI_DisableChn: Disable VI:rkispp_scale0, 1920x1080 End...
rk_aiq_uapi_sysctl_stop enter
rk_aiq_uapi_sysctl_deinit enter
rk_aiq_uapi_sysctl_deinit exit
main exit!

努力-奋斗 发表于 2022-1-12 16:28:13

错误已经解决。
方法:将rtsp-nn.cfg配置文件里的rkispp_scale0和rkispp_scale1修改成自己对应的节点(这里我的dev/video13和dev/video14)
虽然这个问题解决了,现在又出现了新的问题,现在推理rknn模型,好像都没有对物体判别,连个验证框都没有,不知道是啥问题?
有没有大佬知道这个要咋解决
页: [1]
查看完整版本: 运行rkmedia_vi_get_frame_test demo报错