opencv convert to rgb code example
Example 1: bgr to rgb opencv
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
Example 2: cv2 convert to rgb
im_rgb = cv2.cvtColor(im_cv, cv2.COLOR_BGR2RGB)
Example 3: opencv python convert rgb to hsv
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
Example 4: cvtcoloer opencv
toGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)