Ask Your Question

pmj's profile - activity

2012-11-30 06:51:08 -0600 commented answer How do I access an IP Camera?

I'm currently using opencv 2.4.3 version (in windows 7) because, from what I have read, this version already use the ffmpeg suport, needed to read images and video from ip cameras. However, I still not succeed how to get images from ip cameras. For example, I'm trying to use this code to read an image directly from an Axis camera (I put the ip adress on a web browser and I get an image from the camera):

import cv2

imagePath = "http://10.64.13.14/axis-cgi/jpg/image.cgi?resolution=320x240" img = cv2.imread(imagePath) if (img != None): cv2.namedWindow('IP Image',1) cv2.imshow('IP Image',img) cv2.waitKey(0) cv2.destroyWindow('IP Image')

Does anyone know what I'm missing?