514fb7707c2b7d009b0261bc19bd4dbc1e8ec0d9
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)
Languages
Python
99.9%
Shell
0.1%