GithubHelp home page GithubHelp logo

ai-math-notes's Introduction

AI Math Notes

AI-Math-Notes

AI Math Notes is an interactive drawing application that allows users to draw mathematical equations on a canvas. Once an equation is drawn, the application uses a multimodal LLM to calculate and display the result next to the equals sign. The application is built using Python with the Tkinter library for the graphical user interface and PIL for image processing. Inspired by Apple's "Math Notes" demo from WWDC 2024.

Setup & Installation

  • Install libraries: pip install -r requirements.txt
  • Setup OpenAI API as enviorment variable

Usage

  • Run the application: python main.py

Application Interface

The app works by placing the answer next to an equation that has not been solved (AKA an equals sign with nothing to the right of it). An equals sign must be the last thing you wrote before clicking calculate.

  • Canvas: Draw equations using your mouse. The canvas background is black, and the drawing color is white.
  • Clear Button: Clears the entire canvas.
  • Undo Button (Ctrl/Cmd Z): Undoes the last drawing action
  • Calculate Button (Enter/Return): Calculates the drawn equation and displays the result next to the equals sign.

Example

  • Draw an equation on the canvas, such as 5 + 3 =
  • Press Enter or click the Calculate button.
  • The result (e.g., 8) will be displayed next to the equals sign in orange color.

Future Improvements

  • Auto-detect Equals Sign: Implement a computer vision model to detect the equals sign so that it doesn't have to be the last thing you drew. This will improve usability and accuracy in placing the answer.
  • Any contributions are welcome!

License

This project is licensed under the MIT License.

ai-math-notes's People

Contributors

ayushpai avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.