Loading repository dataβ¦
Loading repository dataβ¦
hoangsonww / repository
π€ This repository houses a collection of image classification models for various purposes, including vehicle, object, animal, and flower classification. Each classifier is built using deep learning techniques and pre-trained models to accurately identify and categorize images based on their respective classes. Also includes a sample Flask backend!
Created by Son Nguyen in 2024, this repository contains Python scripts for various AI-powered classifiers. These classifiers can be used for object detection, face detection, character recognition, and more. The classifiers are built using popular deep learning frameworks such as OpenCV, TensorFlow, and PyTorch.
This repository contains 9 subdirectories for the 9 classifiers:
| Classifier | Subdirectory Name |
|---|---|
| Vehicle Classification | Vehicle-Classification |
| Human Face Classification | Human-Face-Classification |
| Mood Classification | Mood-Classification |
| Flower Classification | Flowers-Classification |
| Object Classification | Object-Classification |
| Character Recognition | Character-Recognition |
| Animal Classification | Animals-Classification |
| Speech Recognition | Speech-Recognition |
| Sentiment Analysis | Sentiment-Analysis |
Detailed information about each classifier can be found below.
What's even more interesting is that all these classifiers can use your webcam for live testing, video files, or image files!
Please read this README file carefully to understand how to use each classifier and how to run the main script to choose and run any of the classifiers. Happy classifying! π
Before you begin, ensure you have the following installed on your machine (run pip install <requirement_name> for each dependency or pip install -r requirements.txt to install all the required packages):
training.1600000.processed.noemoticon.csv) or the small dataset generated from it (small_dataset.csv)Flask and Flask-SocketIO as well.It is also recommended to use a virtual environment to use these classifiers. You can create a virtual environment using venv or conda:
python -m venv env
source env/bin/activate
[!IMPORTANT] Note: If you are unable to use Git LFS, you can download the necessary files from my Google Drive:
Please feel free to let me know if you encounter any problems with any of the files, or with getting started with the project!
[!CAUTION] Update: There has been a known issue with Git LFS bandwidth, which may interrupt your Git cloning experience. Please use the Google Drive links above if you encounter any issues with Git LFS. I apologize for the inconvenience.
Try it in your browser (no install needed!): https://ai-classifiers-demo.vercel.app/
This live demo showcases three tasks:
Quick start
Instructions / Troubleshooting
chrome://flags/#enable-experimental-web-platform-features, restart the browser, then refresh this page.If you prefer not to navigate through the subdirectories, you can run the main script main.py to choose and run any of the classifiers. The main script will ask you to choose a classifier from the list of available classifiers. You can then select a classifier and run it.
To run the main script, use the following command:
python main.py
The main script will display a list of available classifiers. Enter the number corresponding to the classifier you want to run. The script will then run the selected classifier.
To stop the script, press Q, ESC, or otherwise close the window.
Alternatively, you can also run the individual scripts in each subdirectory below to run the classifiers directly.
If you would like to use the interactive website version of this app, you can run the Flask web app. The web app allows you to use the classifiers through a web interface. You can choose a classifier and the app will run the selected classifier.
To run the Flask web app, use the following command:
python app.py
The web app will start running on http://127.0.0.1:5000/. Open this URL in your web browser to access the web app. You can then choose a classifier from the list of available classifiers and run it. A pop-up window will display the output of the classifier - so be sure to all