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.14.tar.gz
(106.2 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.14-py3-none-any.whl
(13.4 kB
view details)
File details
Details for the file monocr-0.1.14.tar.gz.
File metadata
- Download URL: monocr-0.1.14.tar.gz
- Upload date:
- Size: 106.2 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 |
c2f2c1ec233101ab38cbc9d3e62d47e10778fc3bec7519bf840600ee175e3d24
|
|
| MD5 |
77b7888a40231c74cf034ce19c6abefc
|
|
| BLAKE2b-256 |
1dbd89a9bc6860e74fe7c75818f89ea2cd4e4cda338d138b73093e5837f2e53b
|
File details
Details for the file monocr-0.1.14-py3-none-any.whl.
File metadata
- Download URL: monocr-0.1.14-py3-none-any.whl
- Upload date:
- Size: 13.4 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 |
4e86d1567b5e05e451dc36f8b0dff299e3c733e923d546e195bb2ef22a0211c1
|
|
| MD5 |
7dc2f90db47a3a97eda9731109e6ca7e
|
|
| BLAKE2b-256 |
48dfb582c5c9621e901c6a75c36399e39283b5499850fe3e26b369f4af1377e3
|