Spaces:
Running
Running
Update working_yolo_pipeline.py
Browse files- working_yolo_pipeline.py +1 -1
working_yolo_pipeline.py
CHANGED
|
@@ -550,7 +550,7 @@ def calculate_x_gutters(word_data: list, params: Dict, page_height: float) -> Li
|
|
| 550 |
|
| 551 |
# THRESHOLD: If bridging blocks > 8% of page height, REJECT.
|
| 552 |
# This allows for page numbers or headers (usually < 5%) to cross, but NOT paragraphs.
|
| 553 |
-
if bridging_ratio > 0.
|
| 554 |
print(
|
| 555 |
f" ❌ Separator X={x_coord} REJECTED: Bridging Ratio {bridging_ratio:.1%} (>15%) cuts through text.")
|
| 556 |
continue
|
|
|
|
| 550 |
|
| 551 |
# THRESHOLD: If bridging blocks > 8% of page height, REJECT.
|
| 552 |
# This allows for page numbers or headers (usually < 5%) to cross, but NOT paragraphs.
|
| 553 |
+
if bridging_ratio > 0.045:
|
| 554 |
print(
|
| 555 |
f" ❌ Separator X={x_coord} REJECTED: Bridging Ratio {bridging_ratio:.1%} (>15%) cuts through text.")
|
| 556 |
continue
|