I have a remote camera streaming through rtsp protocol and am trying to access it in OpenCV 2.13.1 using python with following code.
camera = cv2.VideoCapture("rtsp://admin:<port>@<ip>/xyz/video.smp")
However, when I do that I get the following warning
WARNING: Couldn't read movie file rtsp://admin:<port>@<ip>/xyz/video.smp
I have also tried doing this:
camera = cv2.VideoCapture.open("rtsp://admin:<port>@<ip>/xyz/video.smp")
but when I do this I get this error:
`AttributeError: 'builtin_function_or_method' object has no attribute` 'open'
I did searched quite a bit about this problem but couldn't get the idea that works for me. Any help would be appreciated.