4
stars
3
commits
4
linked in READMEs
Jul 12, 2026
updated
A SafeTensors-packaged Japanese manga OCR model based on kha-white/manga-ocr-base. It uses the Transformers Vision Encoder Decoder architecture with a ViT image encoder and a character-level Japanese BERT decoder.
The model is designed for printed Japanese text, particularly manga-specific layouts:
from transformers import AutoImageProcessor, AutoTokenizer, VisionEncoderDecoderModel
repo = "mayocream/manga-ocr"
model = VisionEncoderDecoderModel.from_pretrained(repo)
processor = AutoImageProcessor.from_pretrained(repo)
tokenizer = AutoTokenizer.from_pretrained(repo)
Input images should be cropped to the text region before recognition. See the original manga_ocr project for its complete normalization and decoding pipeline.
This model does not detect text regions. Results depend on crop quality and can be unreliable for handwriting, unsupported characters, non-Japanese text, extreme perspective, or heavily obscured glyphs. OCR output should be reviewed before use in archival, legal, or accessibility-critical workflows.
Apache-2.0, matching the upstream model repository.
4
stars
3
commits
4
linked in READMEs
Jul 12, 2026
updated
A SafeTensors-packaged Japanese manga OCR model based on kha-white/manga-ocr-base. It uses the Transformers Vision Encoder Decoder architecture with a ViT image encoder and a character-level Japanese BERT decoder.
The model is designed for printed Japanese text, particularly manga-specific layouts:
from transformers import AutoImageProcessor, AutoTokenizer, VisionEncoderDecoderModel
repo = "mayocream/manga-ocr"
model = VisionEncoderDecoderModel.from_pretrained(repo)
processor = AutoImageProcessor.from_pretrained(repo)
tokenizer = AutoTokenizer.from_pretrained(repo)
Input images should be cropped to the text region before recognition. See the original manga_ocr project for its complete normalization and decoding pipeline.
This model does not detect text regions. Results depend on crop quality and can be unreliable for handwriting, unsupported characters, non-Japanese text, extreme perspective, or heavily obscured glyphs. OCR output should be reviewed before use in archival, legal, or accessibility-critical workflows.
Apache-2.0, matching the upstream model repository.