Refactor OCR backend class to be file object based and use images from document page not the actual file. Use pytesseract instead of calling the CLI directly.
This commit is contained in:
@@ -2,4 +2,4 @@ from django.utils.module_loading import import_string
|
||||
|
||||
from .settings import BACKEND
|
||||
|
||||
ocr_backend = import_string(BACKEND)()
|
||||
ocr_backend_class = import_string(BACKEND)
|
||||
|
||||
Reference in New Issue
Block a user