WazDevZm / ZedMathAI

This app solves math using computer vision and AI
3 stars 2 forks source link

Zed Math AI

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.

Features

Requirements

Installation

  1. Clone the repository:

    git clone https://github.com/WazDevZm/ZedMathAI.git
    cd your-repo-name
  2. Set up a virtual environment (optional but recommended):

    python -m venv env
    source env/bin/activate      # On macOS/Linux
    .\env\Scripts\activate       # On Windows
  3. Install the required libraries:

    pip install -r requirements.txt
  4. Set up your API key for Google Generative AI:

    • Add your Google Generative AI API key where genai.configure(api_key="YOUR_API_KEY") appears in the code.
  5. Place the Hand Detection Image:

    • Ensure Zed Math AI.png is in the project directory, or replace with a suitable image path.

Libraries Required

Here's a list of libraries used in this project:

If you don't have cvzone installed, you can get it directly:


pip install cvzone