What is this app? PyTorch-Calculator is a python application that uses a custom PyTorch ML model to interpret and solve mathematical expressions you've drawn to the UI. The machine learning model and the dataset used for training are available on Hugging Face. The app will automatically download and update the model as needed. The app has only been tested on Windows and is also probably not compatible with other platforms.
- Download Python 3.11.x from here and install it
- Clone or download this repository
- Run the
Start.bat
script, it will automatically create a virtual environment and install the required packages
- The build instructions for the C++ version can be found here
The app is currently being rewritten in C++ to improve performance, but the Python version works fine. The current detection model works but it's not perfect and only detects the following characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, +, -, *, /, =, (, )
.