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
Python Usage
from monocr import MonOCR
# Initialize
model = MonOCR()
# 1. Read an Image
text = model.read_text("image.png")
print(text)
# 2. Read with Confidence
result = model.predict_with_confidence("image.png")
print(f"Text: {result['text']}")
print(f"Confidence: {result['confidence']:.2%}")
Examples
See the examples/ folder to learn more.
examples/run_ocr.py: A complete script that can process a folder of images or read a full PDF book.
Dev Setup
git clone git@github.com:janakhpon/monocr.git
cd monocr
uv sync --dev
# Release workflow
uv version --bump patch
git add .
git commit -m "bump version"
git tag v0.1.11
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.11.tar.gz
(105.7 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
monocr-0.1.11-py3-none-any.whl
(12.9 kB
view details)
File details
Details for the file monocr-0.1.11.tar.gz.
File metadata
- Download URL: monocr-0.1.11.tar.gz
- Upload date:
- Size: 105.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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 |
9f5f90b16053ac6292f9a784cd3896cf90c059b6b39c36e210c0e59c384219e3
|
|
| MD5 |
23a6f35726dc1873c18f80df2a342f69
|
|
| BLAKE2b-256 |
b14c7ef3e8efb6cb4077d7dcaf41b1a2d83a60ef2a466082c9f63ccb83e41d99
|
File details
Details for the file monocr-0.1.11-py3-none-any.whl.
File metadata
- Download URL: monocr-0.1.11-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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 |
05d13e874681763e8a3ed3895b5f4352762be777248c96617e1cdd632954ef9c
|
|
| MD5 |
98d4d377806363a5c13a6082a856882f
|
|
| BLAKE2b-256 |
b1e864f497c80200aa9c73749f9f5febb61212b40b042ad10bb29076e069bf3d
|