How to parse mjpeg http stream from ip camera?
问题 Given below is the code written for getting live stream from an IP Camera. from cv2 import * from cv2 import cv import urllib import numpy as np k=0 capture=cv.CaptureFromFile(\"http://IPADDRESS of the camera/axis-cgi/mjpg/video.cgi\") namedWindow(\"Display\",1) while True: frame=cv.QueryFrame(capture) if frame is None: print \'Cam not found\' break else: cv.ShowImage(\"Display\", frame) if k==0x1b: print \'Esc. Exiting\' break On running the code the output that I am getting is: Cam not