cv2 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: cv2 lab to rgb
#python
brightLAB = cv2.cvtColor(bright, cv2.COLOR_BGR2LAB)
darkLAB = cv2.cvtColor(dark, cv2.COLOR_BGR2LAB)