cv2.cvtcolor documentation code example Example: cvtcoloer opencv toGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)