๐Ÿงฎ Apple-Inspired AI Calculator

๐Ÿ“ Overview

The Apple-Inspired AI Calculator is an innovative project that utilizes OpenCV and Googleโ€™s Gemini AI to solve mathematical problems of any complexity. The user can draw the math problem on the screen, and the AI model will interpret the visual input to provide a detailed solution. This project is similar to the Apple iPad calculator but leverages advanced AI technology for enhanced functionality and accuracy.

โœจ Features

  • โœ๏ธ Draw Math Problems: Use your finger to draw any mathematical problem on the screen.
  • ๐Ÿ–ฑ๏ธ Move Around: Move the pointer around the screen by lifting two fingers.
  • ๐Ÿ—‘๏ธ Reset Canvas: Erase the current drawing by lifting the thumb.
  • ๐Ÿ“ค Send to AI Model: Send the visual drawing to the model by lifting the little finger.
  • ๐Ÿ“Š Detailed Solutions: The model interprets the drawing and displays a detailed solution.

๐Ÿ“‹ Requirements

  • ๐Ÿ 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. Obtain the Gemini API Key:

    • Visit AI Studio to get your Gemini API key.
  2. Install Dependencies:

    • Run the following command to install the required packages:
      pip install -r requirements.txt
  3. Configure the API Key:

    • Add your API key to videoapp/view.py.
  4. Run the Web Application:

    • Start the web server with:
      python manage.py runserver
  5. Access the Web Application:

๐ŸŽฅ Demo Video

Check out the demo video to see the Virtual AI Calculator in action:60k+ reactions

Watch the Demo on LinkedIn

๐ŸŽจ Drawing Rules

To interact with the calculator, follow these drawing rules:

  • โœ๏ธ Draw math problems only when the pointer finger is up.
  • ๐Ÿ–ฑ๏ธ Move around the screen by lifting two fingers.
  • ๐Ÿ—‘๏ธ Reset/erase the canvas by lifting the thumb.
  • ๐Ÿ“ค Send the visual drawing to the AI model by lifting the little finger.

The AI model will then interpret the drawing and display a detailed solution.

๐Ÿ“š Learning Resources

To better understand the technologies used in this project, you can explore the following resources:

๐Ÿค Contribution

We welcome contributions to enhance this project. Feel free to submit issues and pull requests. Your feedback and suggestions are highly appreciated!

๐Ÿ“œ License

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

๐Ÿ™ Acknowledgments

  • Thanks to everyone who has supported this project.