|
本帖最后由 CQQQQQQQQQQ 于 2021-4-12 18:10 编辑
自己训练的Yolov4-tiny模型,使用rknn-toolkite-1.6.0转换成rknn模型,使用论坛上面提供的C++版本的程序,如果使用摄像头采集视频,程序运作正常,帧率在30FPS(受限于摄像头的帧率),但是如果使用本地视频文件,则一直报错,报错信息如下: - librga:RGA_GET_VERSION:3.02,3.020000
- ctx=0x5574a74e90,ctx->rgaFd=3
- Rga built version:version:+2017-09-28 10:12:42
- This system has 6 processor(s).
- Bind NPU process(1) to CPU 5
- Bind VideoCapture process to CPU 2
- Bind NPU process(0) to CPU 4
- Bind Display process to CPU 3
- [mpeg4_v4l2m2m @ 0x7f90002750] Could not find a valid device
- [mpeg4_v4l2m2m @ 0x7f90002750] can't configure decoder
- [ WARN:0] OpenCV | GStreamer warning: GStreamer: pipeline have not been created
- [ERROR:0] VIDEOIO(createGStreamerCapture(filename)): raised OpenCV exception:
- OpenCV(3.4.7) /home/firefly/Downloads/opencv-3.4.7/modules/videoio/src/cap_gstreamer.cpp:160: error: (-215:Assertion failed) ptr in function 'get'
- VIDIOC_REQBUFS: Inappropriate ioctl for device
- Fail to open test1_405.mp4
- D RKNNAPI: ==============================================
- D RKNNAPI: RKNN VERSION:
- D RKNNAPI: API: 1.4.0 (bbe0dfc build: 2020-09-14 14:06:05)
- D RKNNAPI: DRV: 1.6.0 (159d2d3 build: 2021-01-12 15:23:09)
- D RKNNAPI: ==============================================
- D RKNNAPI: ==============================================
- D RKNNAPI: RKNN VERSION:
- D RKNNAPI: API: 1.4.0 (bbe0dfc build: 2020-09-14 14:06:05)
- D RKNNAPI: DRV: 1.6.0 (159d2d3 build: 2021-01-12 15:23:09)
- D RKNNAPI: ==============================================
- The initialization of NPU Process 0 has been completed.
- The initialization of NPU Process 1 has been completed.
网上搜了一下报错信息,可能是没有安装FFmpeg导致的,于是编译安装FFmpeg4.1,依然报错,报错信息如下:- librga:RGA_GET_VERSION:3.02,3.020000
- ctx=0x55cfa9de90,ctx->rgaFd=3
- Rga built version:version:+2017-09-28 10:12:42
- mpi: mpp version: 1614c5d4 author: Caesar Wang debian: add rules for mpp with 20191031
- mpp_rt: NOT found ion allocator
- mpp_rt: found drm allocator
- mpp: deprecated block control, use timeout control instead
- mpp: deprecated block control, use timeout control instead
- [swscaler @ 0x55cfade7c0] drm_prime is not supported as input pixel format
- terminate called after throwing an instance of 'cv::Exception'
- what(): OpenCV(3.4.7) /home/firefly/Downloads/opencv-3.4.7/modules/highgui/src/window.cpp:358: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'
- Aborted (core dumped)
API使用的是github上1.6.0版本的,请问大家能正确读取视频文件吗?欢迎大佬赐教!
|
|