bgr to rgb opencv
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
bgr to rgb opencv
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
cv2 convert to rgb
im_rgb = cv2.cvtColor(im_cv, cv2.COLOR_BGR2RGB)
cv2 read rgb image
import cv2
#read image
img = cv2.imread('D:/image-1.png')
#print its shape
print('Image Dimensions :', img.shape)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us