Digitizing thread-bound woodblock prints and photolithographic classical books challenges ordinary OCR engines with traditional orthography, vertical right-to-left columns, and rare characters. Developed under the Apache-2.0 license within PaddleOCR 3.x, PP-OCRv5 is positioned not as a narrow historical-manuscript model, but as a multi-scenario, multi-script general OCR solution whose single recognition model natively handles Simplified Chinese, Traditional Chinese, Chinese Pinyin, English, and Japanese alongside vertical text, complex handwriting, and rare characters—complemented by multilingual models reaching 106 languages.[1][2] Understanding its published benchmark ceilings, server-versus-mobile trade-offs, and column-aware post-processing makes it practical for classical Chinese workflows.

Figure: Vertical traditional Chinese woodblock page from Song-era Dongdu Shilue. Wang Cheng, Wikimedia Commons
What Official Benchmarks Say About Traditional Vertical and Ancient Text
Across PaddleOCR's internal complex multi-scenario evaluation suites, PP-OCRv5 delivers a 13 percentage point end-to-end gain over PP-OCRv4.[2] Breaking down the categories closest to premodern Chinese prints reveals where the leap is largest. On text detection, PP-OCRv5_server_det scores 0.815 on Traditional Chinese and 0.676 on Ancient Text (up from 0.473 for PP-OCRv4_server_det), while the compact PP-OCRv5_mobile_det climbs from 0.231 to 0.581 on Ancient Text.[2]
Recognition gains are even steeper: on the internal evaluation sets, PP-OCRv5_server_rec reaches 0.9314 on Vertical Text (versus 0.5455 in v4), 0.7472 on Traditional Chinese (versus 0.4097), 0.6039 on Ancient Text (versus 0.3080), and 0.5946 on Confusable Characters (versus 0.5028), while recording 93.29% average accuracy on the multi-scenario Traditional Chinese recognition table.[2][4] Those official numbers clarify both strengths and limits: PP-OCRv5 dramatically reduces first-pass transcription effort on crisp vertical prints, yet roughly 60% accuracy on challenging ancient-book benchmarks means human collation against the folio remains indispensable.[2]
Choosing Between Server and Mobile Detection and Recognition Models
PP-OCRv5 pairs a differentiable-binarization text detector that locates polygon text regions with a recognition network that decodes character strings, optionally preceded by document orientation classification, image unwarping, and text-line orientation modules.[3][4] Official releases ship in two deployment tiers: on detection, PP-OCRv5_server_det weighs 84.3 MB with 83.8% general Hmean compared to PP-OCRv5_mobile_det at 4.7 MB and 79.0% Hmean; on recognition, PP-OCRv5_server_rec weighs 81 MB with 93.29% multi-scenario Traditional Chinese accuracy compared to PP-OCRv5_mobile_rec at 16 MB and 83.55%.[4]
Licensing and version pinning also deserve attention. Both the PaddleOCR codebase and officially released PP-OCRv5 checkpoints carry the permissive Apache-2.0 license, allowing research teams and commercial software to integrate and redistribute them with attribution notices intact.[1] Because PaddleOCR 3.7 updated the general pipeline default to PP-OCRv6_medium, workflows that specifically target PP-OCRv5 should pass --ocr_version PP-OCRv5 or explicit PP-OCRv5 model names rather than relying on unpinned defaults.[3]
Installation and Minimal CLI and Python Entry Points
According to the PaddleOCR 3.x installation guide, the core general OCR package requires Python 3.8 or newer and pairs with PaddlePaddle 3.0 or above when using the default paddle_static inference engine—for example, installing python -m pip install paddlepaddle==3.2.0 (CPU or matching CUDA GPU wheel) followed by python -m pip install paddleocr, or paddleocr[all] if you also need layout parsing.[5] In regions where downloading official weights from HuggingFace is slow, setting PADDLE_PDX_MODEL_SOURCE="BOS" switches model retrieval to Baidu Object Storage.[4]
On flat, upright classical book scans, disabling document-orientation rotation, geometric unwarping, and text-line flipping avoids accidental 90-degree flips of vertical columns. A minimal CLI run pinning PP-OCRv5 is paddleocr ocr -i ./folio.jpg --ocr_version PP-OCRv5 --use_doc_orientation_classify False --use_doc_unwarping False --use_textline_orientation False --save_path ./output.[3] In Python batch scripts, instantiate PaddleOCR(ocr_version="PP-OCRv5", text_detection_model_name="PP-OCRv5_server_det", text_recognition_model_name="PP-OCRv5_server_rec", use_doc_orientation_classify=False, use_doc_unwarping=False, use_textline_orientation=False), invoke ocr.predict("./folio.jpg"), and export both coordinate JSON and bounding-box overlay images with res.save_to_json("output") and res.save_to_img("output").[3]
A Classical Woodblock Post-OCR Proofreading Workflow
Turning raw JSON bounding boxes into a usable classical Chinese text requires four domain-specific post-processing steps. First, restore traditional reading order by sorting detected vertical columns from right to left using each box's horizontal center coordinate, ordering lines top to bottom within each column, and stripping center-fold running titles (banxin), fishtail ornaments, and marginal folio numbers.[3] Second, separate large main-text columns from double-column small-character commentaries by comparing box width and character height so glosses stay bracketed instead of colliding with canonical lines. Third, run targeted checks for notoriously confusable classical graphs (such as ji/yi/si or yue/ri), stray simplified-traditional substitutions, and variant characters against authoritative reference editions. Fourth, inspect the rendered save_to_img detection overlays side by side with the original folio scans to catch missed small notes or damaged woodblock strokes before freezing a cited transcription.[3]
References
[1] GitHub: PaddlePaddle/PaddleOCR Repository and Apache-2.0 License [2] PaddleOCR Docs: Introduction to PP-OCRv5 and Benchmark Metrics [3] PaddleOCR Docs: General OCR Pipeline Usage (CLI and Python API) [4] PaddleOCR Docs: Text Detection and Text Recognition Model Tables [5] PaddleOCR Docs: Quick Start and Installation