| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- {
- "run": {
- "mode": "composed",
- "backend": "mock",
- "max_fps": 15.0,
- "warmup_frames": 3,
- "log_level": "INFO",
- "log_json": false,
- "save_on_change": false,
- "output_dir": "runs",
- "preview": false,
- "log_dir": "",
- "log_retention_days": 90
- },
- "evidence": {
- "enabled": false,
- "dir": "",
- "retention_days": 90,
- "segment_mb": 50,
- "ring_frames": 300,
- "fps": 15.0,
- "jpeg_quality": 85,
- "max_side": 960
- },
- "health": {
- "enabled": true,
- "work_width": 320,
- "blur_var_min": 18.0,
- "dark_clip_ratio_max": 0.97,
- "bright_clip_ratio_max": 0.55,
- "low_texture_ratio_max": 0.88,
- "degrade_persist_s": 0.8,
- "recover_persist_s": 1.5
- },
- "source": {
- "type": "file",
- "uri": "samples/demo.mp4",
- "width": 0,
- "height": 0,
- "buffer_size": 2,
- "use_gst": false,
- "reconnect_s": 2.0,
- "stale_frame_s": 0.6
- },
- "model": {
- "path": "weights/model.onnx",
- "engine_path": "weights/model.plan",
- "rknn_path": "weights/model.rknn",
- "labels": [
- "container",
- "bed",
- "flatbed",
- "not_on_train"
- ],
- "input_size": [
- 640,
- 640
- ],
- "input_format": "rgb_float",
- "conf": 0.35,
- "iou": 0.5,
- "max_det": 60,
- "nms_free": false,
- "quantized": false,
- "rknn_core": "auto",
- "onnx_providers": [
- "CUDAExecutionProvider",
- "CPUExecutionProvider"
- ],
- "num_threads": 2
- },
- "scene": {
- "mode": "composed",
- "classes": {
- "container": [
- "container",
- "container_full",
- "container_empty",
- "container_20ft",
- "container_40ft"
- ],
- "bed": [
- "bed",
- "wagon_bed",
- "hopper_wagon",
- "gondola"
- ],
- "flatbed": [
- "flatbed",
- "flat_wagon",
- "platform_wagon"
- ],
- "ignore": [
- "person",
- "people",
- "crane",
- "spreader",
- "truck",
- "wheel",
- "rail"
- ]
- },
- "direct_map": {
- "not_on_train": 0,
- "bed": 1,
- "flatbed": 2
- },
- "roi": [
- [
- 0.03,
- 0.1
- ],
- [
- 0.97,
- 0.1
- ],
- [
- 0.97,
- 0.99
- ],
- [
- 0.03,
- 0.99
- ]
- ],
- "require_container": true,
- "min_class_conf": 0.3,
- "roi_min_ratio": 0.3,
- "support_overlap": 0.3,
- "support_dy_ratio": 0.45,
- "support_score_ratio": 0.6,
- "unknown_on_no_detection": true,
- "no_container_conf": 0.6
- },
- "evidence_v2": {
- "enabled": false,
- "view": "front",
- "work_width": 960,
- "window": [
- 0.24,
- 0.02,
- 0.78,
- 0.95
- ],
- "band_min_h": 3,
- "band_max_h_ratio": 0.15,
- "bed_search_ratio": 0.4,
- "box_bottom_max_ratio": 0.78,
- "below_start_ratio": 0.07,
- "below_height_ratio": 0.55,
- "below_min_height_px": 24,
- "min_door_posts": 5,
- "max_door_posts": 16,
- "max_bed_gap_px": 40.0,
- "flat_max_door_posts": 4,
- "max_post_spacing_cv": 6.0,
- "min_post_len_ratio": 0.3,
- "min_wall_opacity": 0.35,
- "max_flat_gap_px": 40.0,
- "wall_edge_density_ref": 0.14,
- "wall_edge_density_span": 0.04,
- "ground_block_px": 32,
- "ground_density_lo": 0.02,
- "ground_density_hi": 0.35,
- "min_flat_ground_ratio": 0.4,
- "min_zero_ground_ratio": 0.65,
- "deck_min_len_ratio": 0.3,
- "box_height_m": 2.591,
- "px_per_m": 0.0,
- "min_scale_px": 60.0,
- "motion_diff_max": 12.0,
- "motion_grad_ratio_min": 0.72,
- "require_commit": true,
- "allow_state2": true,
- "structure_hits_min": 0.6,
- "commit": {
- "gap_m_max": 0.1,
- "gap_px_hard_max": 8.0,
- "stable_frames": 5,
- "structure_frames": 5,
- "min_structure_hits": 0.6,
- "max_gap_rise_m": 0.01,
- "allow_state1": true,
- "allow_state2": true,
- "require_motion_ok": true,
- "require_view_known": true,
- "use_plc_arrival": true
- }
- },
- "decision": {
- "window": 9,
- "window_s": 1.0,
- "min_votes": 4,
- "min_confidence": 0.45,
- "min_dwell_s": 0.2,
- "hold_s": 0.6,
- "lost_timeout_s": 1.5,
- "low_fps_threshold": 3.0,
- "mrc_on_uncertain": true
- },
- "calibration": {
- "stale": false,
- "record": "",
- "max_age_days": 180,
- "px_per_m_tolerance": 0.1,
- "box_height_tolerance_m": 0.02,
- "hold_on_stale": true
- },
- "plc": {
- "enabled": true,
- "push": "modbus_server",
- "modbus": {
- "host": "0.0.0.0",
- "port": 1502,
- "unit_id": 1,
- "input_addr": 0,
- "holding_addr": 0,
- "allow_unit_any": true
- },
- "snap7": {
- "host": "192.168.0.10",
- "rack": 0,
- "slot": 1,
- "db_number": 100,
- "db_start": 0,
- "reconnect_s": 3.0,
- "tcp_port": 102
- },
- "gating": false,
- "gating_timeout_ms": 800,
- "heartbeat_ms": 500,
- "confidence_scale": 1000,
- "min_publish_interval_ms": 50
- }
- }
|