I have a list of images of various dimensions:
images = [] for direct in directory: img = cv2.imread(direct) img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)