This project is an interactive AI-powered application using a webcam to recognize hand gestures and trigger an AI model to solve math problems based on specific gestures. It integrates OpenCV for webcam capture, cvzone for hand tracking, Streamlit for a user interface, and Google’s Generative AI for answering math problems.
Clone the repository:
git clone https://github.com/WazDevZm/ZedMathAI.git
cd your-repo-name
Set up a virtual environment (optional but recommended):
python -m venv env
source env/bin/activate # On macOS/Linux
.\env\Scripts\activate # On Windows
Install the required libraries:
pip install -r requirements.txt
Set up your API key for Google Generative AI:
genai.configure(api_key="YOUR_API_KEY")
appears in the code.Place the Hand Detection Image:
Zed Math AI.png
is in the project directory, or replace with a suitable image path.Here's a list of libraries used in this project:
cv2
(OpenCV) for real-time video capturecvzone
for hand gesture detectionstreamlit
for creating the user interfacegoogle.generativeai
for AI-driven responsesPIL
(Pillow) for image handlingnumpy
for array operationsIf you don't have cvzone
installed, you can get it directly:
pip install cvzone