I have to compare images present in two different folders. One called "Test" and another called "Training". The Test folder contains 10 images and the Training folder contains 40 images. They are all images of numbers from 0 to 9 in black & white. Test folder contains one image for each number, and the Train folder contains 4 images for each number, as linked below. I need to use a KNN algorithm to compare them. All the images are in png format and sized [28;40]px. Any help would be helpful. Thanks in advance.