Steel Creek

This commit is contained in:
firestar5683
2026-07-11 15:42:44 -05:00
parent 9dbf5db9ec
commit e38668b3cb
4 changed files with 6 additions and 2 deletions
@@ -160,6 +160,7 @@ def parse_args() -> argparse.Namespace:
)
parser.add_argument("--right-roi-bounds", help="Override the right ROI as left,top,right,bottom ratios, for example 0.45,0,1,0.82.")
parser.add_argument("--right-roi-min-confidence", type=float, help="Override the right ROI detector minimum confidence.")
parser.add_argument("--classifier-min-confidence", type=float, help="Override the value classifier confidence threshold.")
parser.add_argument("--full-frame-ocr", action="store_true", help="Enable the expensive full-frame OCR fallback during replay.")
return parser.parse_args()
@@ -262,6 +263,9 @@ def configure_runtime_options(args: argparse.Namespace) -> None:
if args.detector_region_mode:
slv.DETECTOR_CLASSIFIER_REGION_MODE = args.detector_region_mode
if args.classifier_min_confidence is not None:
slv.US_CLASSIFIER_MIN_CONFIDENCE = args.classifier_min_confidence
if args.full_frame_ocr:
slv.FULL_FRAME_OCR_FALLBACK_ENABLED = True
@@ -385,7 +389,7 @@ def summarize(route: str, segment_count: int, qlog_context: bool, daemon: RouteR
def write_events(path: Path, route_events: list[tuple[str, dict[str, str]]]) -> None:
path.parent.mkdir(parents=True, exist_ok=True)
fieldnames = [
"route", "time_s", "event", "candidateSpeedLimitMph", "speedLimitMph", "confidence", "reason",
"route", "time_s", "event", "candidateSpeedLimitMph", "candidateConfidence", "speedLimitMph", "confidence", "reason",
"previousRoadName", "roadName",
]
with path.open("w", encoding="utf-8", newline="") as output_file:
+1 -1
View File
@@ -153,7 +153,7 @@ US_DETECTOR_CLASSES = {
US_CLASSIFIER_SPEED_VALUES = (15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75)
SCHOOL_ZONE_SPEED_VALUES = frozenset((15, 20, 25))
US_DETECTOR_MIN_CONFIDENCE = 0.06
US_CLASSIFIER_MIN_CONFIDENCE = 0.65
US_CLASSIFIER_MIN_CONFIDENCE = 0.80
US_CLASSIFIER_REJECT_MIN_CONFIDENCE = 0.85
SEPARATE_REJECT_CLASSIFIER_ENABLED = False
US_REJECT_CLASSIFIER_MIN_CONFIDENCE = 0.85