Adds an initial check that tesseract is locatable
This commit is contained in:
parent
cc25cbc026
commit
5921a551d9
@ -21,6 +21,9 @@ def get_tesseract_langs():
|
|||||||
|
|
||||||
@register()
|
@register()
|
||||||
def check_default_language_available(app_configs, **kwargs):
|
def check_default_language_available(app_configs, **kwargs):
|
||||||
|
if shutil.which("tesseract") is None:
|
||||||
|
return [Error("Executable 'tesseract' was not located")]
|
||||||
|
|
||||||
installed_langs = get_tesseract_langs()
|
installed_langs = get_tesseract_langs()
|
||||||
|
|
||||||
if not settings.OCR_LANGUAGE:
|
if not settings.OCR_LANGUAGE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user