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