corridor_threshold_detection

Functions

area_count(gray, rect, threshold, black)

Replicates per-area pixel count (camera.py detect_black/white).

scan_video(path, rects, thresholds, empty, black)

Scans a video, keeping only the best BGR frame per area.

select_from_grays(grays, rects, thresholds, ...)

For each area, pick the gray-frame index where only that area is occupied.