Answers for "cv2 imread rgb"

8

bgr to rgb opencv

img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
Posted by: Guest on June-20-2020
3

cv2 convert to rgb

im_rgb = cv2.cvtColor(im_cv, cv2.COLOR_BGR2RGB)
Posted by: Guest on July-17-2020
0

cv2 read rgb image

import cv2
#read image
img = cv2.imread('D:/image-1.png')
#print its shape
print('Image Dimensions :', img.shape)
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language