Loading and saving images in OpenCV is quite limited, so... what is the preferred ways to load all images from a given folder? Should I search for files in that folder with .png
import glob cv_img = [] for img in glob.glob("Path/to/dir/*.jpg"): n= cv2.imread(img) cv_img.append(n)`