Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to stream from an ip camera?

Guys there are a lot of codes and explanation and non of them helped me. I can not get frames from ip cameras. I can stream them with vlc player but I can't stream on my python2+opencv3 code. here is url of video= http://178.124.174.130:8080/cam_3.jpg

and here is my try " import cv2 import numpy as np cap=cv2.VideoCapture() cap.open('http://178.124.174.130:8080/cam_3.jpg') while(True): ret,frame=cap.read() cv2.imshow("",frame) if cv2.waitKey(1) & 0xff==ord('q'): break cap.release() cv2.destroyAllWindows()

"