Files
owocr/README.md
Maciej Budyś 3a88953989 setup
2022-01-18 00:44:46 +01:00

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)