Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import cv2
- import numpy as np
- url = "http://192.168.1.11:8080/shot.jpg"
- while True:
- img_resp = requests.get(url)
- img_arr = np.array(bytearray(img_resp.content), dtype=np.uint8)
- img = cv2.imdecode(img_arr, -1)
- cv2.imshow("AndroidCam", img)
- if cv2.waitKey(1) == 27:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement