Spaces:
Sleeping
Sleeping
Yaz Hobooti
commited on
Commit
·
2a26601
1
Parent(s):
9c0188f
Update validation text comment to clarify 50 Carroll location
Browse files- pdf_comparator 2.py +1 -1
pdf_comparator 2.py
CHANGED
|
@@ -367,7 +367,7 @@ def _is_in_excluded_bottom_area(box: Box, image_height: int, excluded_height_mm:
|
|
| 367 |
return box.y1 >= excluded_top
|
| 368 |
|
| 369 |
def _contains_validation_text(text: str) -> bool:
|
| 370 |
-
"""Check if text contains the validation text '50 Carroll'"""
|
| 371 |
return "50 Carroll" in text
|
| 372 |
|
| 373 |
def load_pdf_pages(path: str, dpi: int = 600, max_pages: int = 15) -> List[Image.Image]:
|
|
|
|
| 367 |
return box.y1 >= excluded_top
|
| 368 |
|
| 369 |
def _contains_validation_text(text: str) -> bool:
|
| 370 |
+
"""Check if text contains the validation text '50 Carroll' (only exists in lower 115mm)"""
|
| 371 |
return "50 Carroll" in text
|
| 372 |
|
| 373 |
def load_pdf_pages(path: str, dpi: int = 600, max_pages: int = 15) -> List[Image.Image]:
|