使用python的opencv模块,读取rtsp格式的网络摄像头,刚开始数据读取没问题,几十秒之后报错,然后就无法读取图像数据了,希望得到各位的帮助,感谢感谢。
报错如下:
The cu_qp_delta 52 is outside the valid range [-26, 25].
Could not find ref with POC 24.
python代码如下:
cap = cv2.VideoCapture(camera_url)
ret, frame = cap.read()
cv2.imshow('Video Stream', frame)