Skip to content

0.3.2

Choose a tag to compare

@Bodhi42 Bodhi42 released this 28 Aug 06:42
· 32 commits to main since this release

occular-ocr 0.3.2

Multilingual recognition — 12 more languages.

  • 12 additional Cyrillic-script languages beyond the default Russian/English: Bashkir, Belarusian, Bulgarian, Chuvash, Kazakh, Kyrgyz, Macedonian, Mongolian, Serbian, Tajik, Tatar, Ukrainian. Turn them on with languages=:

    • ocr(img, languages=["uk"]) — a single language (fastest)
    • ocr(img, languages=["ru", "kk"]) — detect the language per line
    • ocr(img, languages="auto") — auto-detect across all supported languages

    Also available on OCRPipeline(...), Settings(languages=...), and the CLI (--languages / --lang).

  • Per-language decoding. Each language uses its own tuned settings — a language model where it helps, fast greedy decoding where it doesn't. The recognizer and only the requested language's weights are downloaded from the Hub on first use. More languages will follow in future releases.

  • Default path unchanged. Russian/English works exactly as before — same model, same output, no extra downloads.

Upgrade: pip install -U occular-ocr