This example allows the classification of images with scikit-learn: http://scikit-learn.org/stable/auto_examples/classification/plot_digits_classification.html However, it is important that all the images have the same size (width and height, as written in the comments). How can I modify this code to allow classification of images with different sizes?
Asked
Active
Viewed 741 times
1 Answers
0
You will need to define your own Feature Extraction.
In example from above, every pixel is represent a feature. If your images of different sizes, most trivial (but certainly not the best) thing that you can do is pad all images to the size of largest image with, for example, white pixels.
Here an example how to add boarders to image.
-
Thanks for your answer. you can link to me an example? – michelle.70 Feb 11 '16 at 11:43