imread real color cv2 1

imread real color cv2

img = cv2.imread(os.path.join(path, image), cv2.COLOR_BGR2RGB)

Here is what the above code is Doing:
1. We’re reading the image using cv2.imread()
2. We’re converting the image to RGB format using cv2.COLOR_BGR2RGB
3. We’re displaying the image using plt.imshow()

Similar Posts