Skip to main content

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 v0.1.19
git push origin main --tags

License

MIT - do whatever you want with it.

Project details


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.20.tar.gz (106.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monocr-0.1.20-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file monocr-0.1.20.tar.gz.

File metadata

  • Download URL: monocr-0.1.20.tar.gz
  • Upload date:
  • Size: 106.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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

Hashes for monocr-0.1.20.tar.gz
Algorithm Hash digest
SHA256 3207160118b8540461f8673ed3046126c69f40f2a2e89c78c114df32847ce74f
MD5 6fac65b22ba8f2e358f2de220861d304
BLAKE2b-256 6542efc9233590184982ced2de855cf8140eedcd9046af3d5770af4ae136b51b

See more details on using hashes here.

File details

Details for the file monocr-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: monocr-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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

Hashes for monocr-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 478de1f26f66f5130ac08f97ff3259d15baa909309943e1aac15c4242d661bb8
MD5 e2c4655618200397d378e1b9f6c1b624
BLAKE2b-256 a7013addcd8bb60862f858f5cd8e923df46f8b9d9a9db25e338ec1f45452edb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page