i have problem in useing opencv python when reading rtsp stream, this works fine:
cv::VideoCapture video_cap;
video_cap.open("rtsp://admin:[email protected]//Streaming/Channels/1?tcp");
but when i use python, it doesn't work, my python code is
video_cap = cv2.VideoCapture("rtsp://admin:[email protected]//Streaming/Channels/1?tcp");
print(video_cap.isOpened())
and i had tested this:
video_cap = cv2.VideoCapture(0);
print(video_cap.isOpened())
it works fine too, I don't know why? Anyone can tell me?