I want to read my images in a certain order that they are placed because for training my svm classifier the class labeling has been done sequentially but unfortunately my images are not being read sequentially so I'm getting a wrong classifier.
I tried using glob function. Here's the code
for im in glob.glob("/home/essh/Desktop/database/training set/*.jpg"): img = cv2.imread(im)
But this code is not accessing my images sequentially.