refactor detect floorplan to use model listings
This commit is contained in:
parent
ba87d07cd2
commit
325823e631
3 changed files with 37 additions and 15 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue