/
conf.json
118 lines (118 loc) · 3.73 KB
/
conf.json
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"video_settings": {
"source": "./video_example/video_2.mp4",
"width": 1920,
"height": 1080,
"reduced_width": 640,
"reduced_height": 360,
"camera_id": "f2abe45e-aad8-40a2-a3b7-0c610c0f3dda"
},
"neural_network_settings": {
"darknet_cfg": "yolov4.cfg",
"darknet_weights": "yolov4.weights",
"darknet_classes": "coco.names",
"conf_threshold": 0.2,
"nms_threshold": 0.4,
"target_classes": ["car", "motorbike", "bus", "train", "truck"]
},
"cuda_settings":{
"enable": true
},
"mjpeg_settings":{
"imshow_enable": true,
"enable": true,
"port": 35678
},
"grpc_settings": {
"enable": false,
"server_ip": "localhost",
"server_port": 50051
},
"classes_settings": [
{
"class_name": "car",
"drawing_settings": {
"bbox_settings": {
"rgba": [255, 255, 0, 0],
"thickness": 2
},
"centroid_settings": {
"rgba": [255, 0, 0, 0],
"radius": 4,
"thickness": 2
},
"text_settings": {
"rgba": [0, 255, 0, 0],
"scale": 0.5,
"thickness": 1,
"font": "hershey_simplex"
},
"display_object_id": true
}
},
{
"class_name": "motorbike",
"drawing_settings": {}
},
{
"class_name": "bus",
"drawing_settings": {}
},
{
"class_name": "train",
"drawing_settings": {}
},
{
"class_name": "truck",
"drawing_settings": {}
}
],
"tracker_settings": {
"tracker_type": "kalman",
"max_points_in_track": 150,
"lines_settings":[
{
"line_id": 1,
"begin": [110, 600],
"end": [1750, 600],
"direction": "to_detector",
"detect_classes": ["car", "motorbike", "bus", "train", "truck"],
"rgba": [255, 0, 0, 0],
"crop_mode": "crop"
}
],
"polygons_settings":[
{
"polygon_id": 1,
"coordinates": [ [179, 557] , [565, 585], [670, 157], [340, 158] ],
"detect_classes": ["car", "motorbike", "bus", "train", "truck"],
"rgba": [0, 128, 255, 0]
},
{
"polygon_id": 2,
"coordinates": [ [637, 579] , [1161, 589], [1093, 117], [739, 121] ],
"detect_classes": ["car", "motorbike", "bus", "train", "truck"],
"rgba": [255, 0, 255, 0]
},
{
"polygon_id": 3,
"coordinates": [ [1219, 589] , [1743, 587], [1561, 131], [1171, 135] ],
"detect_classes": ["car", "motorbike", "bus", "train", "truck"],
"rgba": [0, 255, 255, 0]
}
],
"speed_estimation_settings": {
"enabled": true,
"send_grpc": false,
"mapper": [
{"image_coordinates": [640, 360], "epsg4326": [37.61891380882616, 54.20564268115055]},
{"image_coordinates": [640, 0], "epsg4326": [37.61875545294513, 54.20546281228973]},
{"image_coordinates": [0, 0], "epsg4326": [37.61903085447736, 54.20543126804313]},
{"image_coordinates": [0, 360], "epsg4326": [37.61906183714973, 54.20562590237201]}
]
}
},
"matpprof_settings": {
"enable": false
}
}