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.- Or a demo notebook to play around with the package
notebooks/demo.ipynb
CLI Usage
You can also use the command line interface:
# Process a single image
monocr read image.png
# Process a folder of images
monocr batch folder/path
# Manually download the model
monocr download
Resources
Development
Release Workflow
uv version --bump patch
uv build
git add .
git commit -m "bump version"
git tag v2.2.3
git push origin main --tags
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-2.1.2.tar.gz
(105.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
monocr-2.1.2-py3-none-any.whl
(12.9 kB
view details)
File details
Details for the file monocr-2.1.2.tar.gz.
File metadata
- Download URL: monocr-2.1.2.tar.gz
- Upload date:
- Size: 105.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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 |
40946a9c27f3f6dca334ae6667f96667b057e028e0420ee7b1355ad698fb9f71
|
|
| MD5 |
50427ea93c62984bfd1aab45c885414a
|
|
| BLAKE2b-256 |
bd284a72c8ec48ac73cac990e5f5d94e41e2f1aa30312272504aea27539fb43a
|
File details
Details for the file monocr-2.1.2-py3-none-any.whl.
File metadata
- Download URL: monocr-2.1.2-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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 |
2b074a48bf7fd5c36b9c793cac3dfb7b1d5c7bd284a6826baac097d59d6a1c67
|
|
| MD5 |
c27133ab0e2ec9caaca6b7b8a0e6c40e
|
|
| BLAKE2b-256 |
5d4ea2fd05785b231dda846c6cb0eec250f8d71eecda6afa3e722b801a2ebb3a
|