From b471af16b957258f621c1ad7c73f2416ef1de78d Mon Sep 17 00:00:00 2001
From: root <root@DESKTOP-JBLS3JM>
Date: 星期五, 25 四月 2025 09:06:27 +0800
Subject: [PATCH] json解析更新

---
 config.json |  127 +++++++++++++++++++++++++-----------------
 1 files changed, 75 insertions(+), 52 deletions(-)

diff --git a/config.json b/config.json
index c1c0ae2..b46d363 100644
--- a/config.json
+++ b/config.json
@@ -1,58 +1,81 @@
 {
-  "ipcs": {
-    "coalCode": "1",
-    "warningFilePath": "/home/zzj/video",
-    "redispath": "127.0.0.1",
-    "redisport": "6379",
-    "redispass": "",
-    "mysqlpath": "192.168.1.197",
-    "mysqlport": "3306",
-    "mysqluser": "admin",
-    "mysqlpass": "zkyc13579",
-    "mysqldatabase": "jnmy",
-    "rabbitpath": "192.168.1.197",
-    "rabbitport": "5672",
-    "rabbituser": "admin",
-    "rabbitpass": "admin",
-    "deley": "1",
-    "recordtime": "10",
-    "RecIntervalime": "20",
-    "restarttime": "21600", //閲嶅惎闂撮殧鏃堕棿锛屽崟浣嶇 6灏忔椂 21600 12灏忔椂锛�43200 绉掞紝24灏忔椂 86400 绉�
-    "ipc": [
+  "redis":{
+      "ip": "127.0.0.1",
+      "port": "6379",
+      "pwd": ""
+  },
+  "mysql":{
+      "ip": "192.168.1.197",
+      "port": "3306",
+      "user": "admin",
+      "pwd": "zkyc13579",
+      "dbname": "jnmy"
+  },
+  "rabbit":{
+      "ip": "192.168.1.197",
+      "port": "5672",
+      "user": "admin",
+      "pwd": "admin"
+  },
+  "ipcs":{
+      "coal_code":"",
+      "warning_path": "/home/zzj/video",
+      "record_time": "10",
+      "restart_time": "21600"
+  },
+  "label_colors":[
+              [ 0, 170, 255 ],
+              [ 85, 255, 0 ],
+              [ 255, 255, 0 ]
+          ],    
+  "cameras": [
       {
-        "id": "2",
-        "ipccode": "1002",
+        "id":"1",
+        "code": "1002",
         "name": "鎽勫儚鏈�1",
-        "ip": "192.168.8.59",
-        "video": "rtsp://admin:a1234567@192.168.1.164:554/h264/ch1/main/av_stream",
-        //"video": "/home/zzj/AIDevelop/video/2.mp4",
-        "models": {
-          "model": [
-            {
-              "modelid": "3", //浜哄憳璇嗗埆
-              "modelpath": "/home/zzj/AIDevelop/model/person-hat_v1.engine",
-              "imagepath": "",
-              "name": "鍖哄煙闂叆",
-              "type": "013",
-              "analysis": "0001",
-              "area": "361,0;696,0;960,540;50,872;",
-              "limit": "0.0",
-              "interval": "100" //褰曞儚闂撮殧
-            }         
-            ,
-            {
-              "modelid": "9", //鐫″矖
-              "modelpath": "/home/zzj/AIDevelop/model/sleep.engine",
-              "imagepath": "",
-              "name": "鐫″矖",
-              "type": "009",
-              "analysis": "0001",
-              "limit": "0.0",
-              "interval": "100" //褰曞儚闂撮殧
-            }  
-          ]
-        }
+        "video": "rtsp://admin:zkwl13579@192.168.1.162:554/h264/ch1/main/av_stream",
+        "skipN":1,
+        "push_type": "stream",
+        "fps": 15,
+        "toRtmp": "rtsp://192.168.1.8:8554/live/camera1",
+        "interval": "20",
+        "model": [
+          {
+            "code": "3",
+            "path": "/home/zzj/AIDevelop/model/person-hat_v1.engine", 
+            "path2": "", 
+            "img_path": "",
+            "name": "鍖哄煙闂叆",
+            "type": ["013","014"],
+            "threshold": 0.45,
+            "limit": "0.0",
+            "color_result": false,
+            "point_rects":[
+                {
+                    "title":"鍗遍櫓鍖哄煙闂叆",
+                    "type":"detdetectarea",
+                    "points":[
+                      {
+                          "x":"152",
+                          "y":"125"
+                      },
+                      {
+                          "x":"986",
+                          "y":"125"
+                      },
+                      {
+                          "x":"986",
+                          "y":"680"
+                      },
+                      {
+                          "x":"152",
+                          "y":"680"
+                      }
+                    ]
+                }
+            ]
+          }
+        ]
       }
     ]
-  }
 }
\ No newline at end of file

--
Gitblit v1.8.0