An open API service indexing awesome lists of open source software.

https://github.com/dakohhh/politicians-face-recognition

A machine learning model where we classify famous Nigerian politicians. We restrict classification to only 4 people
https://github.com/dakohhh/politicians-face-recognition

gridsearchcv jupyter-notebook machine-learning opencv python pywavelets scikit-learn

Last synced: 7 months ago
JSON representation

A machine learning model where we classify famous Nigerian politicians. We restrict classification to only 4 people

Awesome Lists containing this project

README

          

# POLITICIAN IMAGE CLASSIFIER

A machine learning model where we classify famous Nigerian politicians. Model was Built with python's scikit-learn library and fined tuned with Grid Search CV for hyperparameter tuning.

## POLITICIANS

* Bola Tinubu
* MUhammadu Buhari
* Atiku
* Peter OBi

[![politicians](https://res.cloudinary.com/do1iufmkf/image/upload/v1687764729/pkimms3fnouq5mittqxe.png)](https://politician-image-classifier.netlify.app/)

#
[![politicians](https://res.cloudinary.com/do1iufmkf/image/upload/v1687764729/aimlqswl7lftk31lzdv7.png)](https://politician-image-classifier.netlify.app/)

## 🛠 Tech Stack
A list of technologies used within the project:
* [Python](https://www.python.org/)
* [Jupyter Notebook](https://jupyter.org/)
* [Open CV](https://opencv.org/)
* [scikit-learn](https://scikit-learn.org/)
* [Flask](https://flask.palletsprojects.com/en/2.3.x/)
* [PyWavalets](https://opencv.org/)
* [Bootstrap](https://getbootstrap.com/docs/5.3/getting-started/introduction/)

## Featuers
* Image Processing and haarcarscades with opencv
* Image Transform and Feature Extraction with PyWavalets
* Model creation with scikit-learn, Logistic Regression performed best.
* Hyperparameter Tuning With Grid Search CV
* Saved Model with Joblib
* Flask Backend Integration
* Bootstrap, HTML and Javascript for Frontend

## Installation and Usage

```bash
python3 -m venv env
```

```bash
pip install requiremenst.txt
```

```bash
jupyter notebook
```

```bash
flask run
```


## 🔗 Links
[![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge&logo=ko-fi&logoColor=white)](https://wisdomdakoh.netlify.app/)
[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/wisdomdakoh/)
[![instagram](https://img.shields.io/badge/instagrm-f21d6b?style=for-the-badge&logo=instagram&logoColor=white)](https://www.instagram.com/propa.wd/)