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 latex-ocr-server
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.1.tar.gz
(113.1 kB
view details)
Built Distribution
File details
Details for the file latex_ocr_server-0.1.1.tar.gz
.
File metadata
- Download URL: latex_ocr_server-0.1.1.tar.gz
- Upload date:
- Size: 113.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d571dce2b878186bd027815f6522e0383e4366c9b4eeeb692eb8153f8cc0b3 |
|
MD5 | 0f9f958adc687ae89e8af1b74d782118 |
|
BLAKE2b-256 | 4f78bf490b415406a3fbf29eac1312ec224ed223378d18cc1a78a3cba24b5781 |
File details
Details for the file latex_ocr_server-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: latex_ocr_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 122.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1969a5aae8a80fa71286991997ba17821f938a2299326044edca5cb6fcd0c6 |
|
MD5 | 11c8b94f104cd8199b88947eeb42aa92 |
|
BLAKE2b-256 | e373b470ad3b5215d089aeebf8dc7fbab529fe512efbe54d28eaff3443d9edbd |