Ask Your Question
0

Does OpenCV3.10 work with Axis FD216 Security Camera

asked 2018-03-17 17:32:00 -0600

spock gravatar image

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

edit retag flag offensive close merge delete

Comments

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))

berak gravatar imageberak ( 2018-03-17 21:02:32 -0600 )edit

btw, current version is 3.4.1, not 3.1.0

berak gravatar imageberak ( 2018-03-17 21:16:40 -0600 )edit

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()

spock gravatar imagespock ( 2018-03-18 12:43:15 -0600 )edit

if you installed it from PIP, probably not.

please check cv2.getBuildInformation() (there is a VideoIO section)

berak gravatar imageberak ( 2018-03-18 13:01:12 -0600 )edit

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

spock gravatar imagespock ( 2018-03-18 14:06:33 -0600 )edit

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

berak gravatar imageberak ( 2018-03-18 14:16:18 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2018-03-18 09:19:12 -0600

Andrej Lucny gravatar image

updated 2018-03-18 09:22:26 -0600

You can try http://user:[email protected]/mj... You can also test the url separately from OpenCV with ffmpeg utility at the first ffmpeg -i <url> -vframes 1 image.jpg</url>

edit flag offensive delete link more

Comments

Sorry for the delay. Was not available. The following error occurred when enter the following url http://user:[email protected]/mj... Error opening capture device frame1 = None frame is None

spock gravatar imagespock ( 2018-03-25 14:22:18 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-17 17:32:00 -0600

Seen: 274 times

Last updated: Mar 18 '18