Project Overview
Ink Shape recognizes hand-drawn shapes from an HTML canvas. A trained neural network classifies the drawing after it is sent to a Flask backend.
The model recognizes circles, squares, triangles, hexagons, and octagons. The interface shows the predicted class and the probability assigned to each shape.
Technical Implementation
Key Features
Implementation Details
The frontend uses HTML Canvas for drawing and JavaScript to capture the result. The image is encoded and sent to Flask, where it is resized to 28 by 28 pixels, normalized, and inverted to match the training data.
The TensorFlow/Keras model returns a probability for each class. The interface presents those values alongside the predicted shape.