Dog and cat image classifier using feature extraction techniques and machine learning based classification models.
This method of feature extraction consists of:
- split the image into NxN sized cells
- Assign each neighbouring pixel a value of 0 or 1 depending on the intensity.
- Using the neighbour values to make a binary number and assigning that colour to the central pixel.
- Once you have done that with everyone calculate a histogram per cell.
Dataset | Accuracy | Run Time |
---|---|---|
"cat_dog_100" | 95% | 16.30 seconds |
"cat_dog_500" | 92.5% | 4 minutes 26.28 seconds |
This feature extraction method involves three steps:
- Apply convolution filters to calculate the magnitude and orientation of the gradient.
- Divide the image into disjoint blocks and create histograms for each block.
- Normalise the histograms.
Dataset | Accuracy | Run Time |
---|---|---|
"cat_dog_100" | 92.5% | 16.46 seconds |
"cat_dog_500" | 90% | 1 minutes 27.68 seconds |
Scikit-learn SVM
https://scikit-learn.org/stable/modules/svm.html
Created by Odei H. and Endika A. 2022-2023