Ask Your Question

Revision history [back]

Thank you for sharing your reply. Unfortunately, it does not work. cap.isOpened() is False Sorry for misstyping, my version of cv2 is

>>> cv2.__version__
'4.4.0'

It works for the USB camera

>>> cap = cv2.VideoCapture(1)
>>> cap.isOpened()
True

It does not work for the IP Camera

>>> cap = cv2.VideoCapture('rtsp://user:[email protected]/onvif1')
>>> cap.isOpened()
False

It works only in "Media Player Classic" program.

Menu: open file/url -> enter the url >>> cap = cv2.VideoCapture('rtsp://986627:[email protected]/onvif1')

In sum: * Your friend's program works with my USB camera. * Your friend's program DOES NOT WORK with my IP Camera. cv2.isOpened() ;# IS FALSE WHEN INSTANTIATED.

Thank you anyway,

Anthony of Sydney

Thank you for sharing your reply. Unfortunately, it does not work. cap.isOpened() is False Sorry for misstyping, my version of cv2 is

>>> cv2.__version__
'4.4.0'

It works for the USB camera

>>> cap = cv2.VideoCapture(1)
>>> cap.isOpened()
True

It does not work for the IP Camera

>>> cap = cv2.VideoCapture('rtsp://user:[email protected]/onvif1')
cv2.VideoCapture('rtsp://user:[email protected]/onvif1')
>>> cap.isOpened()
False

It works only in "Media Player Classic" program.

Menu: open file/url -> enter the url >>> cap = cv2.VideoCapture('rtsp://986627:[email protected]/onvif1')
cv2.VideoCapture('rtsp://user:[email protected]/onvif1')

In sum: * Your friend's program works with my USB camera. * Your friend's program DOES NOT WORK with my IP Camera.

cv2.isOpened() ;# IS FALSE WHEN INSTANTIATED.INSTANTIATED.

Thank you anyway,

Anthony of Sydney

Thank you for sharing your reply. Unfortunately, it does not work. cap.isOpened() is False Sorry for misstyping, my version of cv2 is

>>> cv2.__version__
'4.4.0'

It works for the USB camera

>>> cap = cv2.VideoCapture(1)
>>> cap.isOpened()
True

It does not work for the IP Camera

>>> cap = cv2.VideoCapture('rtsp://user:[email protected]/onvif1')
>>> cap.isOpened()
False

It works only in "Media Player Classic" program.

Menu: open file/url -> enter the url >>> cap = cv2.VideoCapture('rtsp://user:[email protected]/onvif1')

In sum:

*
  • Your friend's program works with my USB camera. * camera.

  • Your friend's program DOES NOT WORK with my IP Camera.

    cv2.isOpened() cap.isOpened() ;# IS FALSE WHEN INSTANTIATED.INSTANTIATED`.

Thank you anyway,

Anthony of Sydney

Thank you for sharing your reply. Unfortunately, it does not work. cap.isOpened() is False Sorry for misstyping, my version of cv2 is

>>> cv2.__version__
'4.4.0'

It works for the USB camera

>>> cap = cv2.VideoCapture(1)
>>> cap.isOpened()
True

It does not work for the IP Camera

>>> cap = cv2.VideoCapture('rtsp://user:[email protected]/onvif1')
>>> cap.isOpened()
False

It works only in "Media Player Classic" program.

Menu: open file/url -> enter the url >>> cap = cv2.VideoCapture('rtsp://user:[email protected]/onvif1')
'rtsp://user:[email protected]/onvif1'

In sum:

  • Your friend's program works with my USB camera.

  • Your friend's program DOES NOT WORK with my IP Camera.

    cap.isOpened() ;# IS FALSE WHEN INSTANTIATED`.

Thank you anyway,

Anthony of Sydney

Thank you for sharing your reply. Unfortunately, it does not work. cap.isOpened() is False Sorry for misstyping, my version of cv2 is

>>> cv2.__version__
'4.4.0'

It works for the USB camera

>>> cap = cv2.VideoCapture(1)
>>> cap.isOpened()
True

It does not work for the IP Camera

>>> cap = cv2.VideoCapture('rtsp://user:[email protected]/onvif1')
>>> cap.isOpened()
False

It works only in "Media Player Classic" program.program which uses FFMPEG part of K-Lite Codec

Menu: open file/url -> enter the url >>> 'rtsp://user:[email protected]/onvif1'

In sum:

  • Your friend's program works with my USB camera.

  • Your friend's program DOES NOT WORK with my IP Camera.

    cap.isOpened() ;# IS FALSE WHEN INSTANTIATED`.

Thank you anyway,

Anthony of Sydney