python工程,kafka消息对接转换成配置文件并完成类似看门狗监控linux系统进程,定期清理日志
wangrong
2025-04-05 88f9100edcba9581214c1a0acc23cd33a821a9c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
    "version": "1.0",
    "show_screen": false,
    "show_board": true,
    "kafka_server": "192.168.0.79:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 4,
    "channels": [
        {
            "id": "9",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101",
            "source_type": "ffmpeg_rtsp",
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            "560",
                            "120"
                        ],
                        [
                            "706",
                            "116"
                        ],
                        [
                            "1188",
                            "698"
                        ],
                        [
                            "114",
                            "700"
                        ]
                    ],
                    "frame_interval": 10,
                    "save_image": true,
                    "save_video": true,
                    "max_distance": 3,
                    "notify_interval": 30
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            "520",
                            "92"
                        ],
                        [
                            "712",
                            "80"
                        ],
                        [
                            "1264",
                            "488"
                        ],
                        [
                            "338",
                            "700"
                        ]
                    ],
                    "frame_interval": 10,
                    "save_image": true,
                    "save_video": true,
                    "max_distance": 3,
                    "min_stops": 2,
                    "notify_interval": 30
                }
            ]
        }
    ]
}