|
想尝试调试计算棒主动开发模式硬解码rtsp摄像头,用opencv连接调试时报错下面是代码
root@192.168.180.8:/ts_rpf# python3
Python 3.6.8 (default, Mar 21 2019, 09:31:25)
[GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> path = "rtsp://admin:tensorsight666@192.168.1.55:554/h264/ch1/main/av_stream"
>>> camera =cv2.VideoCapture(path)
VIDEOIO ERROR: V4L: device rtsp://admin:tensorsight666@192. ... ch1/main/av_stream: Unable to query number of channels
OpenCV(3.4.1) Error: Unspecified error (GStreamer: your gstreamer installation is missing a required plugin
) in handlemessage, file /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp, line 1869
VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:
OpenCV(3.4.1) /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:1869: error: (-2) GStreamer: your gstreamer installation is missing a required plugin
in function handlemessage
请问这个问题怎么解决。是要安装缺少的软件吗
|
|