This is a Python script that allows the user to draw a mathematical expression on a canvas using their mouse, and then convert it to text using OCR (Optical Character Recognition) to solve the expression.
To run this script, you will need the following software installed on your computer:
- Python 3.x
- OpenCV (
pip install opencv-python
) - Pillow (
pip install pillow
) - Tesseract OCR (
pip install pytesseract
) - Tkinter (included in Python)
- Clone this repository to your local machine.
- Install the required software listed above.
- Open a terminal or command prompt and navigate to the directory where the script is located.
- Run the script by typing
python main.py
in the terminal.
- Draw a mathematical expression on the canvas using the mouse.
- Click the "Calculate" button to solve the expression.
- The solution will be displayed in the console.
Contributions to this project are welcome. If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
AI generated image