Skip to content

amfoss/Image2Latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Image2LaTeX

A simple Flask web app that converts mathematical equation images into LaTeX code using the Pix2Text model.

๐Ÿš€ Features

  • Upload an image containing a math equation
  • Convert it to LaTeX instantly
  • Display the generated LaTeX code in the browser

๐Ÿ› ๏ธ Setup Instructions

  1. Clone the repository

    git clone https://github.com/amfoss/Image2Latex.git  
    cd Image2Latex
    
  2. Create a virtual environment

    python3 -m venv venv  
    source venv/bin/activate   # on Linux or macOS  
    venv\Scripts\activate      # on Windows
    
  3. Install dependencies

    pip install -r requirements.txt
    
  4. Run the Flask app

    python3 main.py
    

The app will run at: http://127.0.0.1:5000

๐Ÿง‘โ€๐Ÿ’ป Project Structure

Image2Latex/
โ”œโ”€โ”€ main.py # Flask backend
โ”œโ”€โ”€ templates/
โ”‚ โ””โ”€โ”€ index.html # Frontend HTML
โ”œโ”€โ”€ venv/ # Virtual environment (ignored)
โ””โ”€โ”€ README.md

๐Ÿค Contributing (Example For Frontend)

  1. Fork this repository and clone your forked repository

  2. Create a new branch

    git checkout -b feature/frontend
    
  3. Make your changes

  4. Commit and push

    git add .  
    git commit -m "feat: improve frontend design"  
    git push origin feature/frontend
    
  5. 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.

๐Ÿง  Future Improvements

  • Better error handling for non-math images
  • Improved UI/UX
  • Drag-and-drop uploads

๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published