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.

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

License

MIT - do whatever you want with it.

Dev Setup

git clone git@github.com:janakhpon/monocr.git
cd monocr
uv sync --dev

Release Workflow

uv version --bump patch
uv build
git add .
git commit -m "bump version"
git tag v0.1.17
git push origin main --tags

Resources

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.18.tar.gz (106.9 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.18-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: monocr-0.1.18.tar.gz
  • Upload date:
  • Size: 106.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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.18.tar.gz
Algorithm Hash digest
SHA256 ff31df1a08a76b1f1c0befd8385d767736890149917dcf015b632f9be3beefab
MD5 3c84b74dffe673eb129997c447a520e3
BLAKE2b-256 216a0de973c01a281988e5773f63bd4b91e06b4881d67c591614a2a6279b4f47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: monocr-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 3b1769f7f5b5bd61196d10cbf2902570b5b422c9ca44e10979feda152d933e0f
MD5 86383c8084958075c183c6ffab7e1dfe
BLAKE2b-256 a17691c03e7c02bd40af499ef8f193322cc9bd514495ce0df28e0c0b65e7abdb

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