1👍
Your code has a bug.
read()
returns a tuple (retval, image), so change line 3 to:
hello, img = cap.read()
Source:stackexchange.com
1👍
Your code has a bug.
read()
returns a tuple (retval, image), so change line 3 to:
hello, img = cap.read()