demo.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. {
  2. "models": {
  3. "yolo_pose_model": {
  4. "model_path": "model/yolo11lpose.engine",
  5. "model_type": "YOLO11POSE",
  6. "names": [
  7. "person"
  8. ],
  9. "gpu_id": 1,
  10. "confidence_threshold": 0.25,
  11. "nms_threshold": 0.45
  12. },
  13. "yolo_seg_model": {
  14. "model_path": "model/model1.engine",
  15. "model_type": "YOLO11SEG",
  16. "names": [
  17. "person",
  18. "bicycle",
  19. "car",
  20. "motorcycle",
  21. "airplane",
  22. "bus",
  23. "train",
  24. "truck",
  25. "boat",
  26. "traffic light",
  27. "fire hydrant",
  28. "stop sign",
  29. "parking meter",
  30. "bench",
  31. "bird",
  32. "cat",
  33. "dog",
  34. "horse",
  35. "sheep",
  36. "cow",
  37. "elephant",
  38. "bear",
  39. "zebra",
  40. "giraffe",
  41. "backpack",
  42. "umbrella",
  43. "handbag",
  44. "tie",
  45. "suitcase",
  46. "frisbee",
  47. "skis",
  48. "snowboard",
  49. "sports ball",
  50. "kite",
  51. "baseball bat",
  52. "baseball glove",
  53. "skateboard",
  54. "surfboard",
  55. "tennis racket",
  56. "bottle",
  57. "wine glass",
  58. "cup",
  59. "fork",
  60. "knife",
  61. "spoon",
  62. "bowl",
  63. "banana",
  64. "apple",
  65. "sandwich",
  66. "orange",
  67. "broccoli",
  68. "carrot",
  69. "hot dog",
  70. "pizza",
  71. "donut",
  72. "cake",
  73. "chair",
  74. "couch",
  75. "potted plant",
  76. "bed",
  77. "dining table",
  78. "toilet",
  79. "tv",
  80. "laptop",
  81. "mouse",
  82. "remote",
  83. "keyboard",
  84. "cell phone",
  85. "microwave",
  86. "oven",
  87. "toaster",
  88. "sink",
  89. "refrigerator",
  90. "book",
  91. "clock",
  92. "vase",
  93. "scissors",
  94. "teddy bear",
  95. "hair drier",
  96. "toothbrush"
  97. ],
  98. "gpu_id": 1,
  99. "confidence_threshold": 0.25,
  100. "nms_threshold": 0.45
  101. }
  102. },
  103. "pipelines": [
  104. {
  105. "pipeline_id": "pipeline_0",
  106. "description": "处理摄像头0的视频流",
  107. "nodes": [
  108. {
  109. "node_id": "src_0",
  110. "node_type": "Source",
  111. "params": {
  112. "stream_url": "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/201",
  113. "gpu_id": 1,
  114. "decode_type": "GPU",
  115. "skip_frame": 1
  116. }
  117. },
  118. {
  119. "node_id": "infer_0",
  120. "node_type": "Inference",
  121. "params": {
  122. "model_id": "yolo_pose_model"
  123. }
  124. },
  125. {
  126. "node_id": "track_0",
  127. "node_type": "Tracker",
  128. "params": {
  129. "track_name": "person",
  130. "track_frame": 30,
  131. "track_distance": 30
  132. }
  133. },
  134. {
  135. "node_id": "draw_0",
  136. "node_type": "Drawer",
  137. "params": {}
  138. },
  139. {
  140. "node_id": "rtsp_0",
  141. "node_type": "Recorder",
  142. "params": {
  143. "gst_pipeline": "appsrc ! videoconvert ! video/x-raw,format=I420 ! x264enc speed-preset=ultrafast bitrate=4000 key-int-max=40 ! video/x-h264,profile=baseline ! rtspclientsink location=rtsp://172.16.20.168:8554/live",
  144. "fps": 20
  145. }
  146. }
  147. ]
  148. },
  149. {
  150. "pipeline_id": "pipeline_1",
  151. "description": "处理摄像头1的视频流",
  152. "nodes": [
  153. {
  154. "node_id": "src_1",
  155. "node_type": "Source",
  156. "params": {
  157. "stream_url": "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/201",
  158. "gpu_id": 1,
  159. "decode_type": "GPU",
  160. "skip_frame": 1
  161. }
  162. },
  163. {
  164. "node_id": "infer_1",
  165. "node_type": "Inference",
  166. "params": {
  167. "model_id": "yolo_seg_model"
  168. }
  169. },
  170. {
  171. "node_id": "draw_0",
  172. "node_type": "Drawer",
  173. "params": {}
  174. },
  175. {
  176. "node_id": "rtsp_0",
  177. "node_type": "Recorder",
  178. "params": {
  179. "gst_pipeline": "appsrc ! videoconvert ! video/x-raw,format=I420 ! x264enc speed-preset=ultrafast bitrate=4000 key-int-max=40 ! video/x-h264,profile=baseline ! rtspclientsink location=rtsp://172.16.20.168:8554/live1",
  180. "fps": 20
  181. }
  182. }
  183. ]
  184. }
  185. ]
  186. }