First time here? Check out the FAQ!
answered 2018-11-18 19:51:26 -0600
Change this:
gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
to
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)