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:
1from transformers import AutoImageProcessor, AutoTokenizer, VisionEncoderDecoderModel
2
3repo = "mayocream/manga-ocr"
4model = VisionEncoderDecoderModel.from_pretrained(repo)
5processor = AutoImageProcessor.from_pretrained(repo)
6tokenizer = 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.