IP camera Python error
问题 I am trying to access a video from an IP camera. I am using OpenCV and Python to do so. The code that I have tried is given below: import numpy as np import cv2 from cv2 import cv camera=cv.CaptureFromFile("http://root:root@192.168.0.90/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg") if camera is None: print 'Camera is null' else: print 'Camera is not null' cv.NamedWindow("win") while True: image=cv.QueryFrame(camera) cv.ShowImage("win", image) k=int(cv.WaitKey(10)) if k is 27: