How to use an html page as input in opencv python?

Asked

Viewed 26 times

0

I need to overlay an html page on my camera using Opencv (Python), but I don’t know how I could do that. I managed to do something similar to that code:

import cv2

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

while True:

    ret, frame=cap.read()
    cv2.imshow('Frame',frame)

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()

But this code only works with a video stream, needed to use in a common html page, as if it were a "browser source" of OBS studio.

Could someone guide me if it’s possible to do this?

  • Ta using the droidcam app?

  • I used "IP webcam" to do this test, but I needed to do the same with a common HTML page, like the Google page for example.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.