default.json 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. {
  2. "run": {
  3. "mode": "composed",
  4. "backend": "mock",
  5. "max_fps": 15.0,
  6. "warmup_frames": 3,
  7. "log_level": "INFO",
  8. "log_json": false,
  9. "save_on_change": false,
  10. "output_dir": "runs",
  11. "preview": false,
  12. "log_dir": "",
  13. "log_retention_days": 90
  14. },
  15. "evidence": {
  16. "enabled": false,
  17. "dir": "",
  18. "retention_days": 90,
  19. "segment_mb": 50,
  20. "ring_frames": 300,
  21. "fps": 15.0,
  22. "jpeg_quality": 85,
  23. "max_side": 960
  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": "file",
  37. "uri": "samples/demo.mp4",
  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. "model": {
  46. "path": "weights/model.onnx",
  47. "engine_path": "weights/model.plan",
  48. "rknn_path": "weights/model.rknn",
  49. "labels": [
  50. "container",
  51. "bed",
  52. "flatbed",
  53. "not_on_train"
  54. ],
  55. "input_size": [
  56. 640,
  57. 640
  58. ],
  59. "input_format": "rgb_float",
  60. "conf": 0.35,
  61. "iou": 0.5,
  62. "max_det": 60,
  63. "nms_free": false,
  64. "quantized": false,
  65. "rknn_core": "auto",
  66. "onnx_providers": [
  67. "CUDAExecutionProvider",
  68. "CPUExecutionProvider"
  69. ],
  70. "num_threads": 2
  71. },
  72. "scene": {
  73. "mode": "composed",
  74. "classes": {
  75. "container": [
  76. "container",
  77. "container_full",
  78. "container_empty",
  79. "container_20ft",
  80. "container_40ft"
  81. ],
  82. "bed": [
  83. "bed",
  84. "wagon_bed",
  85. "hopper_wagon",
  86. "gondola"
  87. ],
  88. "flatbed": [
  89. "flatbed",
  90. "flat_wagon",
  91. "platform_wagon"
  92. ],
  93. "ignore": [
  94. "person",
  95. "people",
  96. "crane",
  97. "spreader",
  98. "truck",
  99. "wheel",
  100. "rail"
  101. ]
  102. },
  103. "direct_map": {
  104. "not_on_train": 0,
  105. "bed": 1,
  106. "flatbed": 2
  107. },
  108. "roi": [
  109. [
  110. 0.03,
  111. 0.1
  112. ],
  113. [
  114. 0.97,
  115. 0.1
  116. ],
  117. [
  118. 0.97,
  119. 0.99
  120. ],
  121. [
  122. 0.03,
  123. 0.99
  124. ]
  125. ],
  126. "require_container": true,
  127. "min_class_conf": 0.3,
  128. "roi_min_ratio": 0.3,
  129. "support_overlap": 0.3,
  130. "support_dy_ratio": 0.45,
  131. "support_score_ratio": 0.6,
  132. "unknown_on_no_detection": true,
  133. "no_container_conf": 0.6
  134. },
  135. "evidence_v2": {
  136. "enabled": false,
  137. "view": "front",
  138. "work_width": 960,
  139. "window": [
  140. 0.24,
  141. 0.02,
  142. 0.78,
  143. 0.95
  144. ],
  145. "band_min_h": 3,
  146. "band_max_h_ratio": 0.15,
  147. "bed_search_ratio": 0.4,
  148. "box_bottom_max_ratio": 0.78,
  149. "below_start_ratio": 0.07,
  150. "below_height_ratio": 0.55,
  151. "below_min_height_px": 24,
  152. "min_door_posts": 5,
  153. "max_door_posts": 16,
  154. "max_bed_gap_px": 40.0,
  155. "flat_max_door_posts": 4,
  156. "max_post_spacing_cv": 6.0,
  157. "min_post_len_ratio": 0.3,
  158. "min_post_spacing_px": 24.0,
  159. "min_post_span_ratio": 0.23,
  160. "texture_top_enable": true,
  161. "texture_grad_th": 50.0,
  162. "texture_block_px": 16,
  163. "texture_block_hit_ratio": 0.03,
  164. "texture_coverage_min": 0.5,
  165. "texture_run_rows": 3,
  166. "texture_smooth_rows": 7,
  167. "texture_top_margin_ratio": 0.02,
  168. "body_fallback_enable": true,
  169. "body_bottom_ratio": 0.75,
  170. "body_min_opacity": 0.75,
  171. "body_min_roi_px": 90,
  172. "min_diagonal_braces": 1,
  173. "min_wall_opacity": 0.35,
  174. "max_flat_gap_px": 40.0,
  175. "wall_edge_density_ref": 0.14,
  176. "wall_edge_density_span": 0.04,
  177. "ground_block_px": 32,
  178. "ground_density_lo": 0.02,
  179. "ground_density_hi": 0.35,
  180. "min_flat_ground_ratio": 0.4,
  181. "min_zero_ground_ratio": 0.65,
  182. "deck_min_len_ratio": 0.3,
  183. "contact_max_h_ratio": 0.12,
  184. "under_deck_dark_delta": 12.0,
  185. "under_deck_min_h_ratio": 0.01,
  186. "under_deck_search_h_ratio": 0.1,
  187. "box_height_m": 2.591,
  188. "px_per_m": 0.0,
  189. "min_scale_px": 60.0,
  190. "motion_diff_max": 12.0,
  191. "motion_grad_ratio_min": 0.72,
  192. "require_commit": true,
  193. "allow_state2": true,
  194. "structure_hits_min": 0.6,
  195. "commit": {
  196. "gap_m_max": 0.1,
  197. "gap_px_hard_max": 8.0,
  198. "stable_frames": 5,
  199. "structure_frames": 5,
  200. "min_structure_hits": 0.6,
  201. "max_gap_rise_m": 0.01,
  202. "allow_state1": true,
  203. "allow_state2": true,
  204. "require_motion_ok": true,
  205. "require_view_known": true,
  206. "use_plc_arrival": true
  207. }
  208. },
  209. "decision": {
  210. "window": 9,
  211. "window_s": 1.0,
  212. "min_votes": 4,
  213. "min_confidence": 0.45,
  214. "min_dwell_s": 0.2,
  215. "hold_s": 0.6,
  216. "lost_timeout_s": 1.5,
  217. "low_fps_threshold": 3.0,
  218. "mrc_on_uncertain": true
  219. },
  220. "calibration": {
  221. "stale": false,
  222. "record": "",
  223. "max_age_days": 180,
  224. "px_per_m_tolerance": 0.1,
  225. "box_height_tolerance_m": 0.02,
  226. "hold_on_stale": true
  227. },
  228. "plc": {
  229. "enabled": true,
  230. "push": "modbus_server",
  231. "modbus": {
  232. "host": "0.0.0.0",
  233. "port": 1502,
  234. "unit_id": 1,
  235. "input_addr": 0,
  236. "holding_addr": 0,
  237. "allow_unit_any": true
  238. },
  239. "snap7": {
  240. "host": "192.168.0.10",
  241. "rack": 0,
  242. "slot": 1,
  243. "db_number": 100,
  244. "db_start": 0,
  245. "reconnect_s": 3.0,
  246. "tcp_port": 102
  247. },
  248. "gating": false,
  249. "gating_timeout_ms": 800,
  250. "heartbeat_ms": 500,
  251. "confidence_scale": 1000,
  252. "min_publish_interval_ms": 50
  253. }
  254. }