PP-OCRv6_manga

PP-OCRv6_manga is a lightweight pipeline for manga and anime text detection and recognition (Japanese and Chinese), small enough to run on a CPU: detection 0.9 MB + recognition 10 MB in FP16.

Text recognition: CER on Manga, Illustrations and JMangaBench_Read

Japanese recognition: CER vs model size

What's new in v0.2 (2026-09-28)

New detector manga_det_v0.2 and recognizer manga_rec_v0.2, drop-in replacements for v0.1 with the same architectures, sizes and speed.

Detector. Retrained on much more manga, webtoon and illustration data. It misses fewer lines, splits or merges lines less often and gives a third fewer false positives on illustrations. With the same recognizer, end-to-end CER drops by about 11% (Table 1).

Recognizer. v0.1 had forgotten most rare kanji; v0.2 brings CER on rare characters from about 60% to about 10% and on SFX from about 45% to about 26%. The other benchmarks improve by about 20% relative CER (Table 2).

Full pipeline, end-to-end CER on the Table 1 pages:

v0.1 v0.2 Change
Manga 12.61% 10.03% βˆ’20.5%
Webtoons 8.38% 6.21% βˆ’25.9%
Illustrations 18.55% 16.36% βˆ’11.8%
Total 13.81% 11.34% βˆ’17.9%

Models

Component Architecture Paddle ONNX FP32 ONNX FP16
Det manga_det_v0.2 (default) PP-OCRv6 tiny (PPLCNetV4 + RepLKFPN + DBHead) 1.9 MB 1.73 MB 0.92 MB
Det manga_det_v0.1 same 2.05 MB 1.73 MB 0.92 MB
Rec manga_rec_v0.2 (default) PP-OCRv6 small (PPLCNetV4 + lightSVTR + MultiHead CTC/NRTR) ~21.3 MB 21.17 MB 10.63 MB
Rec manga_rec_v0.1 same ~21.3 MB 21.17 MB 10.63 MB
  • Dict: ppocrv6_dict.txt (18,708 symbols), shared by both recognizers.
  • The .pdparams files contain the inference weights (backbone + CTC branch).

Benchmark Results

Evaluation data

  • Table 1 (842 pages): the Table 2 pages plus 286 new AnimeText pages; pages found in any training set are excluded.
  • Table 2 (5,181 lines, 562 pages): manga, manhua / webtoon (~85% Chinese) and illustrations, read on the ground-truth line boxes (no detector). Boxes and texts reviewed by hand (34 lines dropped, 267 boxes fixed). Korean and Cyrillic lines excluded. CER after NFKC and folding of notation variants (・・・ = …, β™₯ / ❀ = β™‘, 〇 / β—― = β—‹, γ€γ€Ÿ dropped).
  • SFX, Manga109: COO onomatopoeia annotations on Manga109 pages held out from our training, best of 4 rotations.
  • SFX, Table 2 pages: the 389 Table 2 lines tagged sfx in the GT (manga 292, illustrations 97; webtoon strips not mapped), read on their GT boxes like the rest of Table 2.
  • Rare kanji, synthetic: lines of rare characters in unseen fonts (plain + SFX style), character-weighted.
  • Rare kanji, real lines: AnimeText tag500 test lines with a character seen < 20 times in our training labels.
  • JMangaBench_Read v1.3.2 (7,789 balloon crops, RIN v1.2 normalization, composite = mean of printed / non-printed 1βˆ’NED).

Table 1: Text Detection Benchmark (recall, false positives, end-to-end CER)

v0.2
960
v0.2
1120
v0.1
960
v0.1
1120
base small
960
base medium
960
Size, MB 1.9 1.9 2.05 2.05 10.3 64.3
Manga
Recall, % 94.65 94.81 94.04 94.43 90.69 92.50
FP 490 467 460 460 466 413
CER, % 10.06 9.85 11.38 11.50 13.98 11.10
Webtoons
Recall, % 96.13 96.70 96.28 96.13 93.27 94.56
FP 96 93 108 140 75 49
CER, % 6.21 6.02 6.84 6.69 5.97 6.79
Illustrations
Recall, % 90.02 90.68 88.94 90.26 87.33 89.84
FP 297 283 446 344 330 346
CER, % 16.30 15.03 17.80 16.27 18.87 15.79
Total CER, % 11.35 10.89 12.68 12.41 14.79 12.01

v0.2 / v0.1: manga_det_v0.2 / manga_det_v0.1; base small / medium: the official PP-OCRv6 detectors. 960 / 1120: detector input long side (the demo app uses 960). FP: unmatched boxes; ruby boxes next to a GT line are not FP (geometric rule on the GT side, independent of the app filter). CER: end-to-end CER. Best in bold, second best underlined.

All detectors run the demo pipeline: thresh=0.15, box_thresh=0.25, unclip_ratio=1.4, area resize for long strips, learned furigana filter, block-aware reading order, then manga_rec_v0.2.


Table 2: Text Recognition (CER, lower is better)

v0.2 v0.1 hayai v2.5 nova
(p512)
manga-ocr
nar small
base medium base small
Size (FP32), MB 21 21 599 217 73 21
Manga 3.38 4.46 3.83 3.44* 7.59 8.41
Manhua / webtoon 2.03 2.49 8.79 β€” 2.24 2.85
Illustrations 7.26 9.46 10.63 10.53* 13.98 14.48
SFX, Manga109 (weighted) 26.00 45.49 16.48 22.21 73.86 81.28
SFX, Table 2 pages 28.62 38.54 26.60 26.87 70.24 73.84
Rare kanji, synthetic (weighted) 10.62 59.72 80.94ΒΉ 81.09ΒΉ 21.89 26.49
Rare kanji, real lines 6.22 8.17 6.73 8.62 9.13 10.27
JMangaBench_Read, composite ↑ 95.66 93.92 96.58 97.29 86.05 83.81
JMangaBench_Read, CER 2.04 2.87 2.35 1.71 7.44 8.51
Japanese 4.23 5.60 4.56 4.32 9.61 10.84
Chinese 2.74 3.44 9.00 β€” 3.51 4.71
Total 4.08 5.34 5.50 4.32* 8.54 9.28
Exact match, % ↑ 84.37 80.35 82.49 86.34* 73.54 71.11

v0.2 / v0.1: manga_rec_v0.2 / manga_rec_v0.1; hayai: hayai-ocr-v2.5-nova; manga-ocr nar small: manga-ocr-nar-small (muscgab, CC BY-NC-SA 4.0); base: the official PP-OCRv6 recognizers. Best in bold, second best underlined (plain numbers only, not *, ΒΉ).

* Japanese only: manga-ocr nar small does not read Chinese or Latin, so these values are on the Japanese lines (v0.2 on the same lines: 4.23 total / 84.67 exact).

ΒΉ Random character strings without context; see the real-lines row.

JMangaBench_Read: hayai and manga-ocr nar small read the whole crop (official leaderboard numbers, reproduced locally); PaddleOCR models run the demo pipeline on each crop. manga-ocr nar small trained on AnimeText-OCR crops, which may overlap Table 2.


Table 3: ONNX FP32 vs FP16 (OpenVINO, CPU)

Task Model FP32 FP16
Detection (Table 1 total end-to-end CER) manga_det_v0.2 11.37% 11.39%
Recognition (Table 2 total CER) manga_rec_v0.2 5.72% 5.79%
Recognition (Table 2 total CER) manga_rec_v0.1 6.80% 6.87%

FP16 halves the size at a cost of ~0.05 pp CER. ONNX FP32 matches Paddle (detection: 11.34% in Paddle; recognition: 1496/1500 identical predictions).


Directory Structure

PP-OCRv6_manga/
β”œβ”€β”€ README.md
β”œβ”€β”€ ppocrv6_dict.txt                   # Character dictionary (18,708 symbols)
β”œβ”€β”€ examples/
β”‚   β”œβ”€β”€ onnx_openvino.py               # ONNX / OpenVINO pipeline
β”‚   └── paddle_inference.py            # Paddle models + PaddleOCR post-processing
β”œβ”€β”€ det/
β”‚   β”œβ”€β”€ manga_det_v0.2.pdparams        # Paddle weights (1.9 MB)   <- default
β”‚   β”œβ”€β”€ manga_det_v0.2.onnx            # ONNX FP32 (1.73 MB)
β”‚   β”œβ”€β”€ manga_det_v0.2_fp16.onnx       # ONNX FP16 (0.92 MB)
β”‚   β”œβ”€β”€ manga_det_v0.1.pdparams        # previous version
β”‚   β”œβ”€β”€ manga_det_v0.1.onnx
β”‚   └── manga_det_v0.1_fp16.onnx
└── rec/
    β”œβ”€β”€ manga_rec_v0.2.pdparams        # Paddle inference weights (21.3 MB)   <- default
    β”œβ”€β”€ manga_rec_v0.2.onnx            # ONNX FP32 (21.2 MB)
    β”œβ”€β”€ manga_rec_v0.2_fp16.onnx       # ONNX FP16 (10.6 MB)
    β”œβ”€β”€ manga_rec_v0.1.pdparams        # previous version
    β”œβ”€β”€ manga_rec_v0.1.onnx
    └── manga_rec_v0.1_fp16.onnx

Quick Start

  • ONNX / OpenVINO (CPU, ~11 MB in FP16, no PaddlePaddle): examples/onnx_openvino.py, the full pipeline (detection, DB post-processing, recognition) for one page.
    pip install openvino opencv-python numpy pyclipper huggingface_hub
    python examples/onnx_openvino.py page.jpg
    
  • Paddle: examples/paddle_inference.py, model definitions and weights with PaddleOCR's DBPostProcess and CTCLabelDecode.
  • Recommended DB post-processing: thresh=0.15, box_thresh=0.25, unclip_ratio=1.4, detector input long side 960 (pages longer than 2:1 get the pixel budget of a 3:4 page instead).
Downloads last month
132
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Kellenok/PP-OCRv6_manga

Finetuned
(4)
this model

Datasets used to train Kellenok/PP-OCRv6_manga

Space using Kellenok/PP-OCRv6_manga 1