Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- import urllib.request
- import numpy as np
- url_response = urllib.request.urlopen("http://192.168.50.61/cgi-bin/get_jpeg.cgi")
- img_array = np.array(bytearray(url_response.read()), dtype=np.uint8)
- image = cv2.imdecode(img_array, cv2.IMREAD_COLOR)
- cv2.imshow('Test', image)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement