Explorar o código

fix(viz): rollback step visualizer to pre-content-band version

siz hai 4 días
pai
achega
b893f3f351
Modificáronse 1 ficheiros con 1 adicións e 8 borrados
  1. 1 8
      scripts/vis_evidence_v2_steps.py

+ 1 - 8
scripts/vis_evidence_v2_steps.py

@@ -21,7 +21,6 @@ from portcv.config import load_config
 from portcv.logic.evidence_v2 import (
     EvidenceV2, horizontal_bands, pick_box_and_bed, ground_like_ratio,
     detect_structure_v2, detect_hoist_high, _to_gray, _cluster_positions,
-    content_band,
 )
 
 
@@ -51,14 +50,8 @@ def main() -> int:
     max_h = max(6, int(p.band_max_h_ratio*wh))
     min_h_used = max(1, int(p.band_min_h*scale))
     bright, dark = horizontal_bands(gray, window, min_h=min_h_used, max_h=max_h)
-    band_top, band_bottom = content_band(
-        gray, window, sky_delta=p.content_sky_delta,
-        hold_rows=p.content_hold_rows, margin_ratio=p.content_margin_ratio,
-        enabled=p.content_filter_enabled)
-    dark_in_content = [b for b in dark if b.y0 >= band_top and b.y0 <= band_bottom]
     box_hint = max(80.0, 0.40*wh)
-    box, bed = pick_box_and_bed(bright, dark_in_content, wh,
-                                box_bottom_max_ratio=p.box_bottom_max_ratio,
+    box, bed = pick_box_and_bed(bright, dark, wh, box_bottom_max_ratio=p.box_bottom_max_ratio,
                                 bed_search_px=max(24.0, p.bed_search_ratio*box_hint))
     if box is None:
         print("NO_BOX")