python to andriod camera streaming code example
Example: use android camera as webcam ubuntu in python
import urllib.requestimport cv2import numpy as npimport timeURL = "http://192.168.43.1:8080"while True: img_arr = np.array(bytearray(urllib.request.urlopen(URL).read()),dtype=np.uint8) img = cv2.imdecode(img_arr,-1) cv2.imshow('IPWebcam',img) if cv2.waitKey(1): break