Turn image files into LaTeX equations with protocol buffers
Project description
Latex OCR Server
A protobuf-based service to generate latex equations from image files.
See the .proto
file for the interface.
Installation
pip install https://github.com/lucasvanmol/latex-ocr-server/releases/download/0.1.0/latex_ocr_server-0.1.0-py3-none-any.whl
Installation directly from pypi will be available as soon as I'm able to make an account
Usage
usage: python -m latex_ocr_server start [-h] [--port PORT] [-d] [--cache_dir CACHE_DIR] [--cpu]
optional arguments:
-h, --help show this help message and exit
--port PORT
-d, --download download model if needed without asking for confirmation
--cache_dir CACHE_DIR
path to model cache. Defaults to ~/.cache/huggingface
--cpu use cpu, otherwise uses gpu if available
GPU support
pytorch
must be installed with CUDA support. See https://pytorch.org/get-started/locally/.
You can check if gpu support is working with
latex_ocr_server info --gpu-available
Development
Build
hatch build
Locall Install
pip install ./dist/latex_ocr_server-0.1.0.tar.gz
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
latex_ocr_server-0.1.0.tar.gz
(112.6 kB
view hashes)
Built Distribution
Close
Hashes for latex_ocr_server-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9e6263b1f50fc0fcb42b669e0a1f680a8d523f6bfb45bc25842e240a377c8be |
|
MD5 | 013c3b8b2a5277e762a96954804fc077 |
|
BLAKE2b-256 | 3ef099c945c6c120c4746dbbdf9676170dfe011860f483218ff4e75257cf01aa |