Kellenok/PP-OCRv6_manga

Model

PP-OCRv6_manga

4

7 commits

3 linked in READMEs

updated Oct 9, 2026

See the code

README

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.

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.1v0.2Change
Manga12.61%10.03%βˆ’20.5%
Webtoons8.38%6.21%βˆ’25.9%
Illustrations18.55%16.36%βˆ’11.8%
Total13.81%11.34%βˆ’17.9%

Models

ComponentArchitecturePaddleONNX FP32ONNX FP16
Det manga_det_v0.2 (default)PP-OCRv6 tiny (PPLCNetV4 + RepLKFPN + DBHead)1.9 MB1.73 MB0.92 MB
Det manga_det_v0.1same2.05 MB1.73 MB0.92 MB
Rec manga_rec_v0.2 (default)PP-OCRv6 small (PPLCNetV4 + lightSVTR + MultiHead CTC/NRTR)~21.3 MB21.17 MB10.63 MB
Rec manga_rec_v0.1same~21.3 MB21.17 MB10.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 (562 pages): manga, manhua / webtoon (~85% Chinese) and illustrations; crops from manga_det_v0.1, corrected ground truth, Korean excluded.
  • SFX: Manga109 COO onomatopoeia on held-out pages + SFX lines of the Table 2 illustrations.
  • Rare kanji: synthetic lines of rare characters in unseen fonts + real AnimeText lines with rare characters.
  • JMangaBench_Mixed (3,286 balloon crops, official scoring) and comictxt (217 lines, mean per-line CER).

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, MB1.91.92.052.0510.364.3
Manga
Recall, %94.6594.8194.0494.4390.6992.50
FP490467460460466413
CER, %10.039.8511.4911.5713.8210.88
Webtoons
Recall, %96.1396.7096.2896.1393.2794.56
FP96931081407549
CER, %6.216.026.746.695.836.79
Illustrations
Recall, %90.0290.6888.9490.2687.3389.84
FP297283446344330346
CER, %16.3615.0417.7916.2519.0315.90
Total CER, %11.3410.8912.7512.4614.7011.87

v0.2 / v0.1: manga_det_v0.2 / manga_det_v0.1; base small / medium: the official PP-OCRv6 detectors. 960 / 1120: detector input size; the demo app uses 960. FP: false positives; 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, furigana filter, then manga_rec_v0.2.


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

v0.2v0.1hayai v2.5 nova
(p512)
base mediumbase small
Size (FP32), MB21215997321
Manga5.636.637.029.0710.04
Manhua / webtoon4.435.4113.034.485.10
Illustrations6.497.959.7111.6712.89
SFX (weighted)26.1445.0317.0173.2180.71
Rare kanji (weighted)10.8760.9380.95ΒΉ21.7626.38
JMangaBench4.065.623.11Β²7.198.38
JMangaBench, text only2.283.561.78Β²4.585.94
comictxt8.3711.398.1518.9820.17
Japanese5.787.036.8810.2811.62
Chinese3.164.3113.493.283.77
Total5.726.807.909.2710.26

v0.2 / v0.1: manga_rec_v0.2 / manga_rec_v0.1; hayai: hayai-ocr-v2.5-nova; base medium / small: the official PP-OCRv6 recognizers. CER in %, best in bold, second best underlined. Weighted rows are character-weighted averages over the sets listed under "Evaluation data".

ΒΉ hayai reads the synthetic sets poorly: they are random character strings without context. On the real lines with rare characters it scores 6.87% (v0.2: 6.18%).

Β² hayai reads whole balloon crops, its native input. PaddleOCR models run detection + recognition on the same crops.

The v0.1 numbers above were re-measured the way the demo app runs the model. The v0.1 README reported manga 7.94%; that pipeline padded unsorted batches, which hurt CTC decoding.


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

TaskModelFP32FP16
Detection (Table 1 total end-to-end CER)manga_det_v0.211.37%11.39%
Recognition (Table 2 total CER)manga_rec_v0.25.72%5.79%
Recognition (Table 2 total CER)manga_rec_v0.16.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
    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).
anime
image-to-text
manga
onnx
openvino
paddlenlp
paddleocr
paddlepaddle
PP-OCRv6
text-detection
text-recognition

Kellenok/PP-OCRv6_manga

Model

PP-OCRv6_manga

4

7 commits

3 linked in READMEs

updated Oct 9, 2026

See the code

README

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.

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.1v0.2Change
Manga12.61%10.03%βˆ’20.5%
Webtoons8.38%6.21%βˆ’25.9%
Illustrations18.55%16.36%βˆ’11.8%
Total13.81%11.34%βˆ’17.9%

Models

ComponentArchitecturePaddleONNX FP32ONNX FP16
Det manga_det_v0.2 (default)PP-OCRv6 tiny (PPLCNetV4 + RepLKFPN + DBHead)1.9 MB1.73 MB0.92 MB
Det manga_det_v0.1same2.05 MB1.73 MB0.92 MB
Rec manga_rec_v0.2 (default)PP-OCRv6 small (PPLCNetV4 + lightSVTR + MultiHead CTC/NRTR)~21.3 MB21.17 MB10.63 MB
Rec manga_rec_v0.1same~21.3 MB21.17 MB10.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 (562 pages): manga, manhua / webtoon (~85% Chinese) and illustrations; crops from manga_det_v0.1, corrected ground truth, Korean excluded.
  • SFX: Manga109 COO onomatopoeia on held-out pages + SFX lines of the Table 2 illustrations.
  • Rare kanji: synthetic lines of rare characters in unseen fonts + real AnimeText lines with rare characters.
  • JMangaBench_Mixed (3,286 balloon crops, official scoring) and comictxt (217 lines, mean per-line CER).

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, MB1.91.92.052.0510.364.3
Manga
Recall, %94.6594.8194.0494.4390.6992.50
FP490467460460466413
CER, %10.039.8511.4911.5713.8210.88
Webtoons
Recall, %96.1396.7096.2896.1393.2794.56
FP96931081407549
CER, %6.216.026.746.695.836.79
Illustrations
Recall, %90.0290.6888.9490.2687.3389.84
FP297283446344330346
CER, %16.3615.0417.7916.2519.0315.90
Total CER, %11.3410.8912.7512.4614.7011.87

v0.2 / v0.1: manga_det_v0.2 / manga_det_v0.1; base small / medium: the official PP-OCRv6 detectors. 960 / 1120: detector input size; the demo app uses 960. FP: false positives; 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, furigana filter, then manga_rec_v0.2.


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

v0.2v0.1hayai v2.5 nova
(p512)
base mediumbase small
Size (FP32), MB21215997321
Manga5.636.637.029.0710.04
Manhua / webtoon4.435.4113.034.485.10
Illustrations6.497.959.7111.6712.89
SFX (weighted)26.1445.0317.0173.2180.71
Rare kanji (weighted)10.8760.9380.95ΒΉ21.7626.38
JMangaBench4.065.623.11Β²7.198.38
JMangaBench, text only2.283.561.78Β²4.585.94
comictxt8.3711.398.1518.9820.17
Japanese5.787.036.8810.2811.62
Chinese3.164.3113.493.283.77
Total5.726.807.909.2710.26

v0.2 / v0.1: manga_rec_v0.2 / manga_rec_v0.1; hayai: hayai-ocr-v2.5-nova; base medium / small: the official PP-OCRv6 recognizers. CER in %, best in bold, second best underlined. Weighted rows are character-weighted averages over the sets listed under "Evaluation data".

ΒΉ hayai reads the synthetic sets poorly: they are random character strings without context. On the real lines with rare characters it scores 6.87% (v0.2: 6.18%).

Β² hayai reads whole balloon crops, its native input. PaddleOCR models run detection + recognition on the same crops.

The v0.1 numbers above were re-measured the way the demo app runs the model. The v0.1 README reported manga 7.94%; that pipeline padded unsorted batches, which hurt CTC decoding.


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

TaskModelFP32FP16
Detection (Table 1 total end-to-end CER)manga_det_v0.211.37%11.39%
Recognition (Table 2 total CER)manga_rec_v0.25.72%5.79%
Recognition (Table 2 total CER)manga_rec_v0.16.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
    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).
anime
image-to-text
manga
onnx
openvino
paddlenlp
paddleocr
paddlepaddle
PP-OCRv6
text-detection
text-recognition