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.

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


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.12.tar.gz (105.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.12-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: monocr-0.1.12.tar.gz
  • Upload date:
  • Size: 105.9 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

Hashes for monocr-0.1.12.tar.gz
Algorithm Hash digest
SHA256 5aa4dcb66bedcabdac72fa927f2fccacad67a34bdada62e22fe13ffa74bf485b
MD5 020945c4d22cff8c5df0787110180557
BLAKE2b-256 1a8b766a9a4f77617caa2d94a798b3dfc7373592eb93ed86a0bce3d1589b64ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: monocr-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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

Hashes for monocr-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e801063bb852c11ff62b24dfc2a497d72e8f3bdf66475e572e51d5c3259ca8c9
MD5 ee8e97ebebb3c25bc712e8486d5c8755
BLAKE2b-256 5b9f038a999df4e217b070ac1cb593d162439182fe9533630214f141f7acf54d

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