Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Digit Classifier

A real-time digit recognition web application that uses machine learning to classify handwritten digits drawn by users. Built with TensorFlow.js and D3.js for visualization.

🎯 Features

  • Real-time Drawing: Interactive 28x28 pixel canvas for drawing digits
  • Live Predictions: Instant AI predictions as you draw
  • Confidence Visualization: Bar chart showing prediction confidence for all digits (0-9)
  • Responsive Design: Works on desktop and mobile devices
  • Modern UI: Clean, intuitive interface with smooth animations

🚀 Live Demo

Try it live!

Draw digits on the canvas and watch the AI model predict them in real-time with confidence scores.

🛠️ Technologies Used

  • Frontend: HTML5, CSS3, JavaScript (ES6+)
  • Machine Learning: TensorFlow.js
  • Data Visualization: D3.js
  • Styling: Custom CSS with Inter font
  • Model: Pre-trained MNIST neural network

📁 Project Structure

mnist-draw/
├── index.html          # Main HTML file
├── css/
│   └── styles.css      # Styling and responsive design
├── js/
│   └── script.js       # Main application logic
├── model/
│   ├── model.json      # TensorFlow.js model architecture
│   └── group1-shard1of1.bin  # Model weights
└── README.md           # This file

🎨 How to Use

  1. Drawing: Click and drag on the canvas to draw digits
  2. Clear: Use the "Clear Canvas" button to start over
  3. Predictions: The AI will show predictions in real-time as you draw
  4. Confidence: The bar chart displays confidence scores for all digits (0-9)

🔧 Technical Details

Drawing System

  • 28x28 pixel grid matching MNIST dataset format
  • Smooth brush with multiple pixel weights for natural drawing
  • Real-time pixel data processing

AI Model

  • Pre-trained convolutional neural network
  • Trained on the MNIST dataset
  • Optimized for web deployment with TensorFlow.js

Visualization

  • D3.js bar chart showing prediction confidence
  • Smooth transitions and hover effects
  • Responsive design for different screen sizes

👨‍💻 Author

Made with 💕 by hksamm

Note: The AI model requires an internet connection to load initially, but predictions work offline once loaded.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages