#Created by AyaNabil on 26/9/2022 #importing packages import cv2 import numpy as np import matplotlib.pyplot as plt # load the Image def read_file(filename): img = cv2.imread(filename) img = cv2.cvColor(img, cv2.COLOR_BGR2RGB) plt.imshow(img) plt.show() return img #image path filename = "C:\Users\Dell Latitude E5570\OneDrive - Alexandria University\Desktop\500x500.jpg" read_file(filename)
Quote:img = cv2.cvColor(img, cv2.COLOR_BGR2RGB)
t
cvtColor
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)