a Machine Learning model Built to Search for Similar or Identical Images. This Project was made in fulfillment with the Skills Union Data Science and AI Certification.
This project builds a basic Image Search System that uses the K Nearest Neighbor Algorithm to Search if an Image is similar to a list of other Images. It demonstrates core KNN preprocessing steps and classification techniques using Python's scikit-learn library.
-
Extracting Image from Python's Image Library.
-
Preprocessing to ensure accuracy.
-
Image Search using K Nearest Neighbor.
-
Model training and testing on Image dataset.
-
Python 3.x
-
scikit-learn
-
PIL
-
numpy
-
matplotlib
3 Images extracted from PIL, an image of an astronaut, cup of coffee, and a cat.
⚙️ Installation & Setup
- Clone the repo:
git clone https://github.com/NoorNick/Image-Similarity-Search
cd Image-Similarity-Search
- (Optional) Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
- Install required packages:
pip install -r requirements.txt
Run the notebook or script to train the spam classifier and test it:
python Image_similarity_search.py
