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
74
75
76
77
{
    "version": "1.0",
    "show_screen": true,
    "show_board": false,
    "kafka_server": "192.168.0.85:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 2,
    "channels": [
        {
            "id": "file_src_0",
            "url": "vp_data/test_video/jam.mp4",
            "source_type": "file",
            "resize_ratio": 0.5,
            "pix_width": 704,
            "pix_height": 576,
            "actions": [
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [40,720],[800,500],[1070,500],[1110,1120],[60,1110]
                        ]
                    ]
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "file_src_1",
            "url": "vp_data/test_video/fire.mp4",
            "source_type": "file",
            "resize_ratio": 0.5,
            "pix_width": 704,
            "pix_height": 576,
            "actions": [
                {
                    "action": "FIRE"
                }
            ]
        }
    ],
    "ba_jam_config": {
        "check_interval_frames": 20,
        "check_max_distance": 8,
        "check_min_hit_frames": 50,
        "check_min_stops": 8,
        "check_notify_interval": 10,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 5,
        "check_min_hit_frames": 50,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 1,
        "check_min_hit_frames": 1,
        "check_notify_interval": 10,
        "min_gathering_person": 3,
        "need_record_image": true,
        "need_record_video": true,
        "person_gathering_distance_factor": 4.0
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 5,
        "check_min_hit_frames": 25,
        "check_notify_interval": 10,
        "half_width": 320,
        "need_record_image": true,
        "need_record_video": true
    }
}