opencv rgb code example
Example 1: cv2 convert to rgb
im_rgb = cv2.cvtColor(im_cv, cv2.COLOR_BGR2RGB)
Example 2: cvtcoloer opencv
toGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
im_rgb = cv2.cvtColor(im_cv, cv2.COLOR_BGR2RGB)
toGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)