Getting error in cvtColor

266 views Asked by At

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'

1

There are 1 answers

0
Sreeragh A R On

I guess your desired output is grayscale of the frame. Try this.

gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)