Skip to content

SauravGupta123/MathMotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮 MathMotion

📝 Overview

MathMotion is an AI-powered hand gesture calculator that combines computer vision and advanced AI to solve mathematical problems of any complexity. Using OpenCV for gesture detection and Google’s Gemini AI for problem-solving, it allows users to write math problems in the air or on the screen. The AI interprets the visual input and provides accurate, step-by-step solutions, offering an intuitive and interactive way to perform calculations without traditional input devices.

✨ Features

  • ✍️ Draw Math Problems — Use your finger to write any mathematical expression directly on the screen.
  • 🖱️ Navigate Freely — Move the pointer across the screen by lifting two fingers.
  • 🗑️ Reset the Canvas — Clear your current drawing by lifting your thumb.
  • 📤 Submit to AI — Send the drawing to the AI model by lifting your little finger.
  • 📊 Comprehensive Solutions — Receive accurate, step-by-step explanations powered by Google's Gemini AI.

📋 Requirements

Ensure the following dependencies are installed:

  • 🐍 Python 3.x
  • 👁️ OpenCV 4.8.0.74
  • ➗ NumPy 1.23.5
  • 🖼️ Pillow 9.3.0
  • 🤖 Google Generative AI 0.1.0
  • 🛠️ CVZone 1.5.6
  • 🌐 Django 4.2

🚀 Installation

  1. Get the Gemini API Key

  2. Install Dependencies

    • Use pip to install all required packages:
      pip install -r requirements.txt
  3. Set Up the API Key

    • Add your Gemini API key in the videoapp/view.py file where specified.
  4. Run the Application

    • Start the Django server:
      python manage.py runserver
  5. Open in Browser

🎨 Drawing Rules

Interact with the AI Calculator using these hand gestures:

Gesture Action
☝️ One finger up Draw math problems
✌️ Two fingers up Move the pointer on screen
👍 Thumb up Clear the canvas
🤏 Little finger up Submit the drawing to the AI model

Once submitted, the AI processes the drawing and returns a detailed solution.

🎬 Watch the Calculator Demo in Action

Visual.Calculator.mp4

🤝 Contributing

Contributions are welcome!
Feel free to fork the repository, submit issues, or open pull requests. Your feedback helps improve the project for everyone.

📜 License

This project is licensed under the MIT License.
See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published