连接到tcp://?timeout=0失败:连接被拒绝,如何从Openvino trought RTSP流式传输

2024-06-16 10:20:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试在this tutorial上使用视频流方法

当我尝试使用连接的摄像机时,它运行得很好,但是当我使用它通过RTSP通过RTSP传输来自另一个raspberry pi的视频时,它显示了一个错误:

raspivid -o - -t 0 -w 300 -h 300 -fps 30 -rot 270 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8000/}' :demux=h264

^{pr2}$
python openvino_real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt \--model MobileNetSSD_deploy.caffemodel

[INFO] loading model...
[INFO] starting video stream...
[rtsp @ 0x26ed350] method SETUP failed: 461 Client error

(python:1863): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
Traceback (most recent call last):
  File "openvino_real_time_object_detection.py", line 63, in <module>
    net.setInput(blob)
NameError: name 'blob' is not defined

有人知道怎么修理吗?在


Tags: pyinfostreammodelobjecttimerealdeploy