板子信息:RK3399Pro fedora28 python3.6.8 rknn-toolkit-v1.2.0
opencv_get_NetCamera.py脚本内容:
import cv2
print(cv2.__version__)
cap = cv2.VideoCapture("rtsp://username:password@192.168.3.25/H.264/ch1/sub/av_stream")#h265
ret, frame = cap.read()
while ret:
ret, frame = cap.read()
if not ret:
continue
cv2.imshow("frame0",frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cv2.destroyAllWindows()打开terminal执行如下:[toybrick@toybrick Camera]$ python3 opencv_get_NetCamera.py
3.4.1
VIDEOIO ERROR: V4L: device rtsp://username:password@192.168.3.25/H.264/ch1/sub/av_stream: Unable to query number of channels
mpi: mpp version: Without VCS info
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
mpp: deprecated block control, use timeout control instead
warning: GStreamer: unable to query duration of stream (/builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:904)
warning: Cannot query video position: status=1 value=0 duration=-1
(/builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:952)
我另外开了一个terminal 运行dmesg,显示了很杂乱的信息,如下:
pinstate
[ 3.056467] ov9750.pltfrm_camera_module_get_data WARN: could not get sleep pinstate
[ 3.058617] of_get_named_gpiod_flags: parsed 'rockchip,pd-gpio' property of node '/i2c@ff110000/camera-module@10[0]' - status (0)
[ 3.058624] of_get_named_gpiod_flags: can't parse 'rockchip,pwr-gpio' property of node '/i2c@ff110000/camera-module@10[0]'
[ 3.058630] of_get_named_gpiod_flags: can't parse 'rockchip,pwr-2nd-gpio' property of node '/i2c@ff110000/camera-module@10[0]'
[ 3.058636] of_get_named_gpiod_flags: can't parse 'rockchip,pwr-3rd-gpio' property of node '/i2c@ff110000/camera-module@10[0]'
[ 3.058642] of_get_named_gpiod_flags: can't parse 'rockchip,flash-gpio' property of node '/i2c@ff110000/camera-module@10[0]'
[ 3.058648] of_get_named_gpiod_flags: can't parse 'rockchip,torch-gpio' property of node '/i2c@ff110000/camera-module@10[0]'
[ 3.058661] of_get_named_gpiod_flags: parsed 'rockchip,rst-gpio' property of node '/i2c@ff110000/camera-module@10[0]' - status (0)
[ 3.094171] ov9750.ov_camera_module_write_config(180) ERR: no active sensor configuration
[ 3.094940] ov9750.ov_camera_module_write_config(231) ERR: failed with error -14
[ 3.099309] ov9750.pltfrm_camera_module_read_reg(1040) ERR: i2c read from offset 0x0000300b failed with error -6......详见 New.1022.txt
注意:我的UI界面的视频如下,但是显示是有较明显的延迟的。
请问我的板子是否已经运行了硬解码? 我该如何提高解码速度
|