BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Baidu’s PP-OCRv5 Released on Hugging Face, Outperforming VLMs in OCR Benchmarks

Baidu’s PP-OCRv5 Released on Hugging Face, Outperforming VLMs in OCR Benchmarks

Listen to this article -  0:00

Baidu has released PP-OCRv5 on Hugging Face, a new optical character recognition (OCR) model built to outperform large vision-language models (VLMs) in specialized text recognition tasks. Unlike general-purpose architectures such as Gemini 2.5 Pro, Qwen2.5-VL, or GPT-4o, which handle OCR as part of broader multimodal workflows, PP-OCRv5 is purpose-built for accuracy, efficiency, and speed.

The model targets a growing problem in OCR. While VLMs can read text, they often struggle with precise localization and bounding box accuracy, particularly in high-density or low-quality documents. They can also introduce hallucinations, generating plausible but nonexistent content. PP-OCRv5 avoids these pitfalls with a modular two-stage pipeline designed specifically for structured text extraction, content analysis, and multilingual document recognition.

PP-OCRv5 is remarkably compact, with just 0.07 billion parameters, making it deployable even on CPUs and resource-constrained devices. On an Intel Xeon Gold 6271C CPU, the mobile version can process over 370 characters per second, making it suitable for large-scale or edge deployments.

Despite its size, the model achieves state-of-the-art performance. On OmniDocBench, a benchmark covering handwritten and printed Chinese and English, PP-OCRv5 achieved the highest average 1-edit distance score, outperforming multimodal VLMs several times its size. It supports five script types and recognizes more than 40 languages.


Source: Hugging Face Blog

Still, some in the community have raised questions about its multilingual scope. Pablo González de Prado Salas, Chief Data Scientist at Foqum, commented:

A bit disappointing to see it's limited to English + Chinese. Do you have an intuition of performance in other languages?

Others have emphasized its reliability and evolution over previous PaddleOCR engines. Dario Finardi, an administrator working with OCR systems, noted:

I can confirm that PaddleOCR is really a good engine. We have been working with it since v2.x and with the PP-OCRv3 engine using a self-made training set for fine-tuning (about 160,000 tagged images). The fine-tuning fixes some common errors (missing spaces between words). Now we are moving to the new v3.x + PP-OCRv5: really a boost! Still the same persistent issues with spaces, though.

The two-stage pipeline of PP-OCRv5 consists of:

  1. Image preprocessing — correcting rotation and distortion.
  2. Text detection — localizing lines of text with bounding boxes.
  3. Text orientation classification — ensuring proper alignment.
  4. Text recognition — decoding characters into strings.


    Source: Hugging Face Blog 

This modularity makes the model lightweight and easier to fine-tune for specific use cases compared to monolithic VLMs.

A demo is now available on Hugging Face Spaces, allowing users to upload PDFs or images and receive real-time OCR output. Developers can also install the model locally via PaddleOCR with CPU or GPU support, making it accessible across environments.

About the Author

Rate this Article

Adoption
Style

BT