A real-time application that combines computer vision, hand gesture recognition, and optical character recognition (OCR) to recognize handwritten mathematical expressions and solve them effortlessly. Built using Python, OpenCV, Mediapipe, PaddleOCR, and Streamlit, this project offers an interactive way to solve mathematical expressions through gestures. It includes an AI-powered mode for solving complex expressions with the help of Gemini AI.
-
Hand Gesture Recognition:
-
Draw on the screen by raising your index finger.
-
Clear the canvas by raising your thumb.
-
Solve drawn expressions by raising all fingers except the pinky.
-
-
**Real-Time Processing:**Combines live webcam feed with gesture-based drawing and mathematical evaluation.
-
Dual Math Expression Solver Modes:
-
Normal Mode:
-
Uses OCR and SymPy for evaluating handwritten mathematical expressions.
-
Handles subscripts, superscripts, and common OCR challenges.
-
-
AI Mode:
- Leverages Gemini AI for understanding and solving complex mathematical expressions.
-
-
Languages: Python
-
Libraries:
-
Start the application to access the webcam feed.
-
Select a mode:
-
Normal Mode for solving with OCR + SymPy.
-
AI Mode for Gemini AI-powered solutions.
-
-
Use gestures to interact with the canvas:
-
Draw mathematical expressions with your finger.
-
Clear the canvas using a thumb gesture.
-
Solve expressions by raising all fingers except the pinky.
-
-
Real-time updates for recognized expressions and results.
-
git clone https://github.com//Gesture-Based-Math-Solver.gitcd Gesture-Based-Math-Solver
-
pip install -r requirements.txt
-
GEMINI_API_KEY=your_api_key_here
-
streamlit run main.py
`
Contributions are welcome! If you have ideas for new features or improvements:
-
Fork this repository.
-
git checkout -b feature-name
-
Submit a pull request with detailed comments.
Varshan AVR
This project is licensed under the MIT License. See LICENSE for details.