manga-translator / utils /manga_ocr.py
DenisT's picture
refactor based on changes on the github project
efddbeb
raw
history blame contribute delete
232 Bytes
"""
This module is used to extract text from images using manga_ocr.
"""
from manga_ocr import MangaOcr
def get_text_from_image(image):
"""
Extract text from images using manga_ocr.
"""
mocr = MangaOcr()
return mocr(image)