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