Ok so I tried this:
Code:
import cv2
import numpy as np
import time
camera_ip = "10.25.76.11"
vc = cv2.VideoCapture()
vc.set(cv2.cv.CV_CAP_PROP_FPS, 1)
if not vc.open('http://%s/mjpg/video.mjpg' % camera_ip):
time.sleep(0)
while True:
retval, img = vc.read(buffer)
cv2.imshow("img", img)
if cv2.waitKey(20) == 27:
break
cv2.destroyAllWindows()
exit(0)
And got this:
Code:
Traceback (most recent call last):
File "C:/Users/Lucas/Desktop/cdch/render_stream3.py", line 14, in <module>
retval, img = vc.read(buffer)
TypeError: <unknown> is not a numpy array
So truth be told, I'm not quite sure what's going on...
And yeah, I'd read somewhere that ffmpeg could sometimes be the source of the problem, but I'm on windows and haven't the faintest idea on how to compile from source...
I'm very sorry Dustin if the problem is to obvious, but I've been struggling with this for weeks and my team REALLY needs it for the championships...