A simple Flask web app that converts mathematical equation images into LaTeX code using the Pix2Text model.
- Upload an image containing a math equation
- Convert it to LaTeX instantly
- Display the generated LaTeX code in the browser
- 
Clone the repository git clone https://github.com/amfoss/Image2Latex.git cd Image2Latex
- 
Create a virtual environment python3 -m venv venv source venv/bin/activate # on Linux or macOS venv\Scripts\activate # on Windows
- 
Install dependencies pip install -r requirements.txt
- 
Run the Flask app python3 main.py
The app will run at: http://127.0.0.1:5000
Image2Latex/
โโโ main.py              # Flask backend
โโโ templates/
โ   โโโ index.html       # Frontend HTML
โโโ venv/                # Virtual environment (ignored)
โโโ README.md
- 
Fork this repository and clone your forked repository 
- 
Create a new branch git checkout -b feature/frontend
- 
Make your changes 
- 
Commit and push git add . git commit -m "feat: improve frontend design" git push origin feature/frontend
- 
Open a Pull Request to the main repository on GitHub ๐ 
If you find bugs or have ideas for improvements, open a New Issue in the Issues tab and describe your suggestion or problem clearly.
- Better error handling for non-math images
- Improved UI/UX
- Drag-and-drop uploads