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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latex_ocr_server-0.1.2.tar.gz.
File metadata
- Download URL: latex_ocr_server-0.1.2.tar.gz
- Upload date:
- Size: 125.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36efad685b063124a55fb5a97f5da2dd34cf721c440674da82333bcad208115b
|
|
| MD5 |
c210515a67d2a970a666401665239e5c
|
|
| BLAKE2b-256 |
0b1aa58bae21f485a9f684d928e76fe716ef95c0c3f9756668075b5f99de57d4
|
File details
Details for the file latex_ocr_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: latex_ocr_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 122.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab2da5eb028237303e1ca37b16603323079b11268c6b297e34da973bcd4c5813
|
|
| MD5 |
bf33b95975d473c3e30a9d1ea4d9b632
|
|
| BLAKE2b-256 |
4233d50ce962300c157af711165b390443f542ea2ae4a6769044c5ef4117017c
|