501 B
501 B
OCR for Japanese manga
Installation
You need Python 3.6+.
If you want to run with GPU, install PyTorch as described here, otherwise this step can be skipped.
Run:
pip install manga-ocr
Usage
from manga_ocr import MangaOcr
mocr = MangaOcr()
text = mocr('/path/to/img')
or
import PIL.Image
from manga_ocr import MangaOcr
mocr = MangaOcr()
img = PIL.Image.open('/path/to/img')
text = mocr(img)