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