21 lines
242 B
Markdown
21 lines
242 B
Markdown
# Usage
|
|
|
|
```python
|
|
from manga_ocr import MangaOcr
|
|
|
|
mocr = MangaOcr()
|
|
text = mocr('/path/to/img')
|
|
```
|
|
|
|
or
|
|
|
|
```python
|
|
import PIL.Image
|
|
|
|
from manga_ocr import MangaOcr
|
|
|
|
mocr = MangaOcr()
|
|
img = PIL.Image.open('/path/to/img')
|
|
text = mocr(img)
|
|
```
|