Use the pix2tex CLI, GUI, and API packages
mainThe pix2tex project provides several entry points for interacting with the LaTeX OCR model:
pix2tex.cli: Command-line interface for running OCR tasks from the terminal.pix2tex.gui: A graphical user interface for interacting with the model visually.pix2tex.api: Programmatic interfaces for integrating the OCR model into applications. This includes:pix2tex.api.app: Core application logic.pix2tex.api.streamlit: A Streamlit-based web interface for the model.
pix2tex.models: Contains the underlying model architectures, such asvit(Vision Transformer) andhybridmodels.pix2tex.dataset: Tools for managing and generating datasets, including modules for ArXiv scraping, LaTeX-to-PNG rendering, and data extraction.