Optical Character Recognition for Mon text
Project description
Mon OCR
Optical Character Recognition for Mon (mnw) text.
Installation
pip install monocr | uv add monocr
Quick Start
from monocr import read_text, read_folder
# Read text from a single image
text = read_text("image.png")
print(text)
# Read all images in a folder
results = read_folder("images/")
for filename, text in results.items():
print(f"{filename}: {text}")
Command Line
# Read single image
monocr read image.png
# Process folder
monocr batch images/ --output results.json
Dev Setup
git clone git@github.com:janakhpon/monocr.git
cd monocr
uv sync --dev
# Test
uv run demo/demo.py
uv run python -m pytest tests/
# Release workflow
uv version --bump patch
git add .
git commit -m "bump version"
git tag v0.1.3
git push origin main --tags
Related tools
License
MIT - do whatever you want with it.
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
monocr-0.1.3.tar.gz
(5.9 kB
view details)
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 monocr-0.1.3.tar.gz.
File metadata
- Download URL: monocr-0.1.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec6f40862d56e3263e42d22f8165eb51b2d52da085e132c056e5d713c91ad65b
|
|
| MD5 |
deecf6eb9496f1f1546c65f2f27feab5
|
|
| BLAKE2b-256 |
7a73747816c3cba99ba93d95b9759e75dc5ddf85620c755073d7f50303d3a29d
|
File details
Details for the file monocr-0.1.3-py3-none-any.whl.
File metadata
- Download URL: monocr-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ef3f28f293a9c01ac448cf0a2eb4542189009540d44d8377f95fec5dbc1c359
|
|
| MD5 |
15abbe915e5d98661ea3f96bcb738f0e
|
|
| BLAKE2b-256 |
117681b7bb6623ac1d7b943a82fce4d59750d63cd76322e4aebeec576d2be52b
|