y2kbug icon

Untitled

y2kbug | PRO | 08/04/22 04:26:44 AM UTC | 0 ⭐ | 446 👁️ | Never ⏰ | []
text |

280 B

|

None

|

0 👍

/

0 👎

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)

Comments