blob: 7fbe5a26948cf3115d727c5d6d1e1aa684ca1a01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import cv2
import urllib2
url = "http://72.45.175.148/-wvhttp-01-/GetOneShot?image_size=640x480&frame_count=1000000000"
src = urllib2.urlopen(url)
if not x.info().type.startswith("image"):
cap = cv2.VideoCapture("http://72.45.175.148/-wvhttp-01-/GetOneShot?image_size=640x480&frame_count=1000000000")
ret, frame = cap.read()
cv2.imwrite(frame, "/usr/tmp/tst.jpg")
'multipart/x-mixed-replace'
'image/jpeg'
|