In this end to end data science and machine learning project, we classify sports personalities. We restrict classification to only 5 people,
- Maria Sharapova
- Serena Williams
- Virat Kohli
- Roger Federer
- Lionel Messi Plesae โญ this repository if you found it useful.
- UI : This contains ui website code
- server: Contains the Python flask server related code
- model: Contains python notebook for model building
- google_image_scrapping: Contains the code to scrap google for images
- images_dataset: Dataset used for training our model
Python
Numpy and OpenCV for data cleaning
Matplotlib & Seaborn for data visualization
Sklearn for model building
Jupyter notebook, visual studio code as IDE
Python flask for http server
HTML/CSS/Javascript for UI
A good practice to start with a new project and use it, is to make a virtual enviornment for the particular project. Here is the steps for making virtual enviornment ::
pip install virtualenv
python -m virtualenv myenv
Run commands on python terminal or anaconda terimial or any terminal you are using in your system.
pip install -r requirements.txt
- Clone the repository:
git clone https://github.com/lionelsamrat10/Sports-Celebrity-Image-Classification.git
- Go to the project directory
- Go to Server Directory:
cd Server
- Run the app:
python app.py
- The development server will be up and running on port 5000 at the URL: http://127.0.0.1:5000/
- Now go to the UI Folder and open app.html on the browser. Note that the flask app server must be up and running.
- Drag an image of your favourite celebrity from the five and hit the classify button. Our app will predict the celebrity name with his/ her image. It will also show us the percentage match of our image with all the five celebrities.
Hope you like this project !!!