File size: 406 Bytes
734b5b4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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
|