Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change this:

gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)

to

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