| 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 | |