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