Openvino Movidius无法读取IP摄像机

问题描述

id想让我的movidius NCS1读取IP摄像机。 这是我的代码:

import cv2

#print("Before URL")
cap = cv2.VideoCapture('rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0')
#print("After URL")

while True:

    #print('About to start the Read command')
    ret,frame = cap.read()
    #print('About to show frame of Video.')
    print(ret,frame)

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()

但是我是我的调试测试。我在树莓派中创建了一个新用户,并使用pip为它安装了opencv。 我如果在没有openvino初始化的该用户中运行此代码,它将运行良好。但是在Openvino env中,它无法读取摄像机的蒸汽。

如何解决?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)