1 | initial version |
your input to cv2.cvtColor
is empty/invalid.
please check:
cap.isOpened() # do we have a valid capture at all ?
ret == True # did we get an image ?
i'm pretty sure, it could not connect properly to your stream url.