annator / src /utils /system_checks.py
techprotrade's picture
Add src directory
734b5b4 verified
Raw
History Blame Contribute Delete
406 Bytes
from __future__ import annotations
from src.services.tesseract_service import TesseractService
def environment_report() -> dict:
svc = TesseractService()
report: dict = {"tesseract": None, "status": "ok"}
try:
report["tesseract"] = svc.version()
except Exception as exc:
report["status"] = "warning: " + str(exc)
report["tesseract"] = "NOT FOUND"
return report