edge-v2-wide.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. {
  2. "_note": [
  3. "广角 / 远景 / 高点机位(域外)专用参数组:只发 1(敞车)与 0(不判),不发 2 / 3。",
  4. "为什么:几何判据(车面边梁、门板立柱、箱底暗带)是在部署机位(近距前视、箱底与车面在画面中部)整定的;",
  5. " 广角/远景侧视下,集装箱侧壁与敞车侧墙在 posts/opacity/span 上完全重叠",
  6. " (docs/route_v2.md §9.3 2026-11-20、docs/evidence/test_2026-11-20/测试报告.md §六),强行判 2/3 只会产生危险误报。",
  7. "取舍:宁可弃权(PLC 保持上一稳定值),也不把 2/3 发给 PLC;1(门板阵列横跨整车)在广角下仍相对稳,保留。",
  8. "验收口径(与近距模板不同):只看安全方向——载车不得判 3、空车不得判 1/2、作业帧不得判车型;",
  9. " 召回率必须在按 docs/field_capture_spec.md 补拍的现场素材上另议。",
  10. "用法:portcv_run -c configs/edge-v2-wide.json --backend edge-v2 --source-type images --source-uri <PGM 目录> --no-plc",
  11. "回放/门禁:python scripts/dataset_harness.py --images <语料目录> --config configs/edge-v2-wide.json --labels docs/evidence/test_2026-11-20/labels.json",
  12. "view=high 是语义标记(本模板声明“这是高位/广角机位”),不是自动视角识别;P1d 视角头仍未实现。"
  13. ],
  14. "run": {
  15. "mode": "composed",
  16. "backend": "evidence-v2",
  17. "max_fps": 15.0,
  18. "warmup_frames": 3,
  19. "log_level": "INFO",
  20. "log_json": false,
  21. "save_on_change": true,
  22. "output_dir": "runs/edge_v2_wide",
  23. "preview": false
  24. },
  25. "health": {
  26. "enabled": true,
  27. "work_width": 320,
  28. "blur_var_min": 18.0,
  29. "dark_clip_ratio_max": 0.97,
  30. "bright_clip_ratio_max": 0.55,
  31. "low_texture_ratio_max": 0.88,
  32. "degrade_persist_s": 0.8,
  33. "recover_persist_s": 1.5
  34. },
  35. "source": {
  36. "type": "images",
  37. "uri": "runs/frames_wide",
  38. "width": 0,
  39. "height": 0,
  40. "buffer_size": 2,
  41. "use_gst": false,
  42. "reconnect_s": 2.0,
  43. "stale_frame_s": 0.6
  44. },
  45. "calibration": {
  46. "_comment": "P0-5 标定记录:填 configs/calib/<站点>-<机位>.json;留空则不做判定(只受 stale 开关控制)。hold_on_stale=true 时标定不可信会清 RESULT_VALID/STABLE。",
  47. "stale": false,
  48. "record": "",
  49. "max_age_days": 180,
  50. "px_per_m_tolerance": 0.1,
  51. "box_height_tolerance_m": 0.02,
  52. "hold_on_stale": true
  53. },
  54. "scene": {
  55. "mode": "composed",
  56. "roi": [
  57. [
  58. 0.03,
  59. 0.1
  60. ],
  61. [
  62. 0.97,
  63. 0.1
  64. ],
  65. [
  66. 0.97,
  67. 0.99
  68. ],
  69. [
  70. 0.03,
  71. 0.99
  72. ]
  73. ]
  74. },
  75. "evidence_v2": {
  76. "enabled": true,
  77. "view": "high",
  78. "work_width": 960,
  79. "window": [
  80. 0.24,
  81. 0.02,
  82. 0.78,
  83. 0.95
  84. ],
  85. "band_min_h": 3,
  86. "band_max_h_ratio": 0.15,
  87. "bed_search_ratio": 0.4,
  88. "box_bottom_max_ratio": 0.78,
  89. "below_start_ratio": 0.07,
  90. "below_height_ratio": 0.55,
  91. "below_min_height_px": 24,
  92. "min_door_posts": 5,
  93. "max_door_posts": 16,
  94. "max_bed_gap_px": 40.0,
  95. "flat_max_door_posts": 4,
  96. "max_post_spacing_cv": 6.0,
  97. "min_post_len_ratio": 0.3,
  98. "min_post_spacing_px": 24.0,
  99. "min_diagonal_braces": 1,
  100. "min_post_span_ratio": 0.23,
  101. "texture_top_enable": true,
  102. "texture_grad_th": 50.0,
  103. "texture_block_px": 16,
  104. "texture_block_hit_ratio": 0.03,
  105. "texture_coverage_min": 0.5,
  106. "texture_run_rows": 3,
  107. "texture_smooth_rows": 7,
  108. "texture_top_margin_ratio": 0.02,
  109. "body_fallback_enable": true,
  110. "body_bottom_ratio": 0.75,
  111. "body_min_opacity": 0.5,
  112. "body_min_roi_px": 90,
  113. "body_canny_lo_pct": 0.55,
  114. "body_canny_hi_pct": 0.75,
  115. "body_min_points": 4,
  116. "body_grad_pct": 0.6,
  117. "body_min_inlier_ratio": 0.5,
  118. "body_run_min_len_ratio": 0.2,
  119. "body_min_post_len_ratio": 0.15,
  120. "body_x_margin_ratio": 0.03,
  121. "body_min_posts": 3,
  122. "vehicle_min_span_ratio": 0.5,
  123. "vehicle_max_posts": 60,
  124. "empty_vehicle_enable": false,
  125. "empty_min_posts": 3,
  126. "empty_min_span_ratio": 0.6,
  127. "empty_min_opacity": 0.55,
  128. "empty_min_wall_h_ratio": 0.25,
  129. "empty_min_post_len_ratio": 0.3,
  130. "empty_fallback_max_posts": 4,
  131. "empty_min_diagonal_braces": 1,
  132. "empty_flatbed_enable": false,
  133. "empty_flatbed_min_gap_px": 16.0,
  134. "empty_flatbed_max_plane_edge": 0.12,
  135. "empty_flatbed_max_gray_drop": 80.0,
  136. "empty_top_margin_ratio": 0.0,
  137. "allow_state3": false,
  138. "min_wall_opacity": 0.35,
  139. "wall_edge_density_ref": 0.14,
  140. "wall_edge_density_span": 0.04,
  141. "ground_block_px": 32,
  142. "ground_density_lo": 0.02,
  143. "ground_density_hi": 0.35,
  144. "min_zero_ground_ratio": 0.65,
  145. "deck_min_len_ratio": 0.3,
  146. "contact_max_h_ratio": 0.12,
  147. "under_deck_dark_delta": 12.0,
  148. "under_deck_min_h_ratio": 0.01,
  149. "under_deck_search_h_ratio": 0.1,
  150. "max_flat_gap_px": 40.0,
  151. "box_height_m": 2.591,
  152. "px_per_m": 0.0,
  153. "min_scale_px": 60.0,
  154. "motion_diff_max": 12.0,
  155. "motion_grad_ratio_min": 0.72,
  156. "require_commit": true,
  157. "allow_state2": false,
  158. "structure_hits_min": 0.6,
  159. "min_bed_roi_px": 90,
  160. "reject_hoist_high": true,
  161. "hoist_dark_max": 75,
  162. "hoist_band_frac": 0.035,
  163. "hoist_line_ratio": 0.2,
  164. "hoist_dark_ratio": 0.55,
  165. "hoist_bright_delta": 12.0,
  166. "reject_spreader_contact": true,
  167. "spreader_dark_max": 110,
  168. "spreader_dark_ratio": 0.55,
  169. "commit": {
  170. "gap_m_max": 0.1,
  171. "gap_px_hard_max": 8.0,
  172. "stable_frames": 5,
  173. "structure_frames": 5,
  174. "min_structure_hits": 0.6,
  175. "max_gap_rise_m": 0.01,
  176. "allow_state1": true,
  177. "allow_state2": false,
  178. "allow_state3": false,
  179. "require_motion_ok": true,
  180. "require_view_known": true,
  181. "use_plc_arrival": true
  182. }
  183. },
  184. "decision": {
  185. "window": 9,
  186. "window_s": 1.0,
  187. "min_votes": 4,
  188. "min_confidence": 0.45,
  189. "min_dwell_s": 0.2,
  190. "hold_s": 0.6,
  191. "lost_timeout_s": 1.5,
  192. "low_fps_threshold": 3.0
  193. },
  194. "plc": {
  195. "enabled": true,
  196. "push": "modbus_server",
  197. "modbus": {
  198. "host": "0.0.0.0",
  199. "port": 1502,
  200. "unit_id": 1,
  201. "input_addr": 0,
  202. "holding_addr": 0,
  203. "allow_unit_any": true
  204. },
  205. "gating": false,
  206. "gating_timeout_ms": 800,
  207. "heartbeat_ms": 500,
  208. "confidence_scale": 1000,
  209. "min_publish_interval_ms": 50
  210. }
  211. }