opencv GStreamer-CRITICAL

使用openvino中的opencv跑之前的代码。碰到个问题

(myProg:20371): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed

只是警报出这句话,但是程序可以继续跑。

查了一下,是我在保存视频时导致的,

VideoWriter TankFullScreen = VideoWriter( "/home/TankFullScreen.avi", 
											VideoWriter</
nvidia@nvidia-desktop:~$ cd CSI-Camera/ nvidia@nvidia-desktop:~/CSI-Camera$ python3 simple_camera.py nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, width=(int)960, height=(int)540, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink (python3:15280): GStreamer-CRITICAL **: 20:26:30.952: gst_caps_get_structure: assertion &#39;GST_IS_CAPS (caps)&#39; failed (python3:15280): GStreamer-CRITICAL **: 20:26:30.952: gst_structure_get_int: assertion &#39;structure != NULL&#39; failed [ WARN:0@30.140] global cap_gstreamer.cpp:1714 open OpenCV | GStreamer warning: cannot query video width/height (python3:15280): GStreamer-CRITICAL **: 20:26:30.952: gst_structure_get_fraction: assertion &#39;structure != NULL&#39; failed [ WARN:0@30.140] global cap_gstreamer.cpp:1722 open OpenCV | GStreamer warning: cannot query video fps [ WARN:0@30.140] global cap_gstreamer.cpp:1777 open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 Traceback (most recent call last): File "/home/nvidia/CSI-Camera/simple_camera.py", line 75, in <module> show_camera() File "/home/nvidia/CSI-Camera/simple_camera.py", line 53, in show_camera window_handle = cv2.namedWindow(window_title, cv2.WINDOW_AUTOSIZE) cv2.error: OpenCV(4.10.0) /home/nvidia/JEP/script/workspace/opencv-4.10.0/modules/highgui/src/window_gtk.cpp:638: error: (-2:Unspecified error) Can&#39;t initialize GTK backend in function &#39;cvInitSystem&#39;
09-25
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值