Can't find a solution for this error
File "/home/pi/glen/python/vid.py", line 8, in gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GBGR) AttributeError: 'module' object has no attribute 'COLOR_BGR2GBGR'
Can't find a solution for this error
File "/home/pi/glen/python/vid.py", line 8, in gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GBGR) AttributeError: 'module' object has no attribute 'COLOR_BGR2GBGR'
I guess your desired output is grayscale of the frame. Try this.
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)