pp-ocrv6-small-htr-onnx
handwritten and printed text recognition
2 min readupdated
This model is an ONNX (open format for exchanging machine learning models) conversion of the lightweight PP-ocrv6 small handwritten and printed text line recognizer featuring 3.24 million parameters. It supports 44 languages across 10 scripts, including Portuguese, and is designed for computer vision and text processing tasks. Built on the PaddleOCR architecture, the model is adapted to run via ONNX Runtime. It helps developers integrate fast local line recognition into applications, automation systems, or specialized local utilities.
Key features
- ONNX format: Optimized conversion of the original model for fast execution through ONNX Runtime.
- Lightweight: Only 3.24 million parameters while maintaining high recognition accuracy.
- Multilingual: Support for 44 languages and 10 different writing systems.
- Specialization: Accurate recognition of individual lines of printed and handwritten text.
What you can do
- Software integration: Embed the model into local desktop or mobile applications for document processing.
- Handwriting analysis: Apply it for signature verification or matching handwritten text against reference data using CTC (Connectionist Temporal Classification — a sequence classification method without temporal alignment).
- Custom pipelines: Use the ONNX version to build custom OCR pipelines using Python and ONNX Runtime.
Example
To work with the model, feed an image of a text line as input (normalized to a height of 96 pixels with inverted colors) and decode the output probabilities using the accompanying codec.json file.
Read more
DetailsArchitecture: PP-ocrv6 (PaddleOCR) in ONNX opset 17
Metrics (original): overall CER (Character Error Rate) 5.43%, WER (Word Error Rate) 20.22%
License: Apache-2.0
Conversion developer: Epryx (original by Benjamin Kiessling, ALMAnaCH / Inria Paris)










Comments