Machine Learning Model that accurately classifies shapes such as circles, triangles, squares and rectangles.
git clone "https://github.com/CSjianbel/Shape-Classifier.git"
- Generate the Data
- Generate
n
random images of shapes
- Generate
- Create and train a Convolutional Neural Network
- Load in the dataset
- Feed into the CNN
- Make Tweaks on CNN model to improve accuracy/performance
- Python Application that utilizes the shape classifier model
- 3 Modes:
- User provides image to be classified
- GUI application that let's the user draw shapes and the model classifies the drawing
- Webcam, the user can turn on their camera and show hand-drawn shapes to the camera for the model to classify
- 3 Modes:
pip install -r requirements.txt
python generate_shape_images.py
python shape_classifier_model.py
python shape_classifier_model.py [model.h5]
Default model will be in Models/shape_classifier_model.h5.
python shape_classifier.py
python shape_classifier.py --webcam
python shape_classifier.py [path to image]
python shape_classifer.py -m [path to model]
- Circles
- Triangles
- Squares
- Rectangles
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
A Project by Jiankarlo A. Belarmino