refactor detect floorplan to use model listings

This commit is contained in:
Viktor Barzin 2025-06-07 14:30:32 +00:00
parent ba87d07cd2
commit 325823e631
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
3 changed files with 37 additions and 15 deletions

View file

@ -44,7 +44,7 @@ def improve_img_for_ocr(img: Image):
return Image.fromarray(thresh)
def calculate_ocr(image_path):
def calculate_ocr(image_path) -> tuple[float | None, str]:
import pytesseract
img = Image.open(image_path)