dkrivoruchko / ScreenStream

ScreenStream Android App
https://screenstream.io
MIT License
1.56k stars 319 forks source link

How can I access the frame from OpenCV? #205

Closed Katana-O closed 1 year ago

Katana-O commented 1 year ago

I pasted my code here.

import cv2

cap = cv2.VideoCapture('http://192.168.1.9:8080/')

cap = cv2.VideoCapture('http://192.168.1.9:8080/1')

cap = cv2.VideoCapture('http://[::1]:8080')

while True: ret, frame = cap.read() cv2.imshow("frame", frame) key = cv2.waitKey(50) if key == 27: break cv2.destroyAllWindows()

Here's the outcome I got. image

dkrivoruchko commented 1 year ago

Well, I have no idea. But keep in mint that app use MJPEG and it's available http://192.168.1.9:8080/stream.mjpg

Katana-O commented 1 year ago

Well, I have no idea. But keep in mint that app use MJPEG and it's available http://192.168.1.9:8080/stream.mjpg

Thanks, it is fixed now!