CnOcr is a Python 3 package for Chinese and English OCR, providing small pretrained models. Version 2.3.2.3 is the latest release. The library uses ONNX for inference and supports both text detection and recognition. Release cadence is irregular.
pip install cnocrNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize CnOcr with default model and OCR an image.
Use 'from cnocr import CnOcr'.
Set model name or download models manually.
Use CnOcr.ocr() instead.
Run 'pip install cnocr'
Update cnocr with 'pip install --upgrade cnocr' and use 'ocr()' method.