Does OpenCV3.10 work with Axis FD216 Security Camera
Unable to stream video with AXIS FD216 IP Security Camera. Programming with OpenCV3.10 and Python3.5
Example – From my browser the following http://192.168.1.141/mjpg/video.mjpg brings up my authentication required. It then streams video.
However, it does not works with my program. Example. cam = cv.2(VideoCapture( ‘http://192.168.1.141/mjpg/video.mjpg ‘)
I have tried various examples from the Web. Had no success.
Would appreciate any remarks as to this issue. Maybe VideoCapture does not work with OpenCV3.10.
Appreciate any comments to my question or any examples to achieve success.
Thanks
Denis
cv2 -- any chance, you're on linux and tried to install this via some stupid package manager ?
(e.g. the PIP one does not have any ffmpeg support builtin, and thus cannot read url streams.)
((distribution problem (not built locally from src, as recommended by opencv), not an opencv one))
btw, current version is 3.4.1, not 3.1.0
Example of Program. Does OpenCV work with a IP camera?
import cv2 import numpy as np
cam = cv2.VideoCapture('http://192.169.1.141/mjpg/video.mjpg') while(True): tf, frame = cam.read() print (tf) cv2.imshow('Single Frame', frame) cv2.waitKey(0)
cam.release() cv2.destroyAllWindows()
if you installed it from PIP, probably not.
please check
cv2.getBuildInformation()
(there is a VideoIO section)Berak - Programming with python 3.6 No imports from pip. Used conda to install cv2 and np only from Anaconda. Do you think there would be a difference between versions? The reason I ask....I see no evidence of being able to stream video from an IP security camera.on the web. Going to checkout cv2.getBuildInformaion() Thanks for your comments
conda is also suspicious.
if cv2.getBuildInformation() comes empty for any backend, like ffmpeg or gstreamer , it means, your cv2 was built without any support for url or video files