-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.json
More file actions
192 lines (192 loc) · 11.3 KB
/
deployment.json
File metadata and controls
192 lines (192 loc) · 11.3 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"modulesContent": {
"$edgeAgent": {
"properties.desired": {
"modules": {
"spatialanalysis": {
"settings": {
"image": "mcr.microsoft.com/azure-cognitive-services/vision/spatial-analysis:latest",
"createOptions": "{\"k8s-experimental\": {\"volumes\": [{\"volume\": {\"name\": \"dshm\",\"emptyDir\": {\"medium\": \"Memory\",\"sizeLimit\": 536870912}},\"volumeMounts\": [{\"name\": \"dshm\",\"mountPath\": \"/dev/shm\",\"mountPropagation\": \"None\",\"readOnly\": \"false\",\"subPath\": \"\"}]}]},\"HostConfig\": {\"IpcMode\": \"host\",\"PortBindings\":{\"2222/tcp\":[{\"HostPort\":\"2222\"}]},\"Binds\": [\"/tmp/.X11-unix:/tmp/.X11-unix\"],\"Runtime\": \"nvidia\",\"ShmSize\":536870912,\"LogConfig\": {\"Type\": \"json-file\",\"Config\": {\"max-size\": \"10m\",\"max-file\": \"200\"}}}}"
},
"type": "docker",
"env": {
"DISPLAY": {
"value": ":1"
},
"QT_X11_NO_MITSHM": {
"value": "1"
},
"ARCHON_LOG_LEVEL": {
"value": "info"
},
"ARCHON_SHARED_BUFFER_LIMIT": {
"value": "377487360"
},
"ARCHON_GRAPH_READY_TIMEOUT": {
"value": "600"
},
"OMP_WAIT_POLICY": {
"value": "PASSIVE"
},
"EULA": {
"value": "accept"
},
"BILLING":{
"value": "< ********************** >"
},
"APIKEY":{
"value": "< ********************* >"
},
"ORT_TENSORRT_ENGINE_CACHE_ENABLE": {
"value": "1"
}
},
"status": "running",
"restartPolicy": "always"
}
},
"runtime": {
"settings": {
"minDockerVersion": "v1.25"
},
"type": "docker"
},
"schemaVersion": "1.0",
"systemModules": {
"edgeAgent": {
"settings": {
"image": "mcr.microsoft.com/azureiotedge-agent:1.1",
"createOptions": ""
},
"type": "docker"
},
"edgeHub": {
"settings": {
"image": "mcr.microsoft.com/azureiotedge-hub:1.1",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"443/tcp\":[{\"HostPort\":\"443\"}],\"5671/tcp\":[{\"HostPort\":\"5671\"}],\"8883/tcp\":[{\"HostPort\":\"8883\"}]}}}"
},
"type": "docker",
"env": {
"SslProtocols": {
"value": "tls1.2"
}
},
"status": "running",
"restartPolicy": "always"
}
}
}
},
"$edgeHub": {
"properties.desired": {
"routes": {
"route": "FROM /messages/* INTO $upstream"
},
"schemaVersion": "1.0",
"storeAndForwardConfiguration": {
"timeToLiveSecs": 7200
}
}
},
"spatialanalysis": {
"properties.desired": {
"globalSettings": {
"platformTelemetryEnabled": false,
"customerTelemetryEnabled": true
},
"graphs": {
"cognitiveservices_vision_spatialanalysis_1": {
"operationId": "cognitiveservices.vision.spatialanalysis",
"parameters": {
"INPUT_VIDEO_WIDTH": 1920
},
"sharedNodes": {
"sharedDetector": {
"node": "SpatialAnalysisGraph/detector",
"parameters": {
"DETECTOR_NODE_CONFIG": "{\"gpu_index\":0}"
}
},
"sharedFacemask": {
"node": "SpatialAnalysisGraph/facemask",
"parameters": {
"VIDEO_DECODE_GPU_INDEX": 0,
"ENABLE_FACE_MASK_CLASSIFIER": true
}
},
"sharedCalibrator": {
"node": "SpatialAnalysisGraph/cameracalibrator",
"parameters": {
"CAMERACALIBRATOR_NODE_CONFIG": "{ \"gpu_index\": 0, \"do_calibration\": true}"
}
}
},
"instances": {
"checkoutLine": {
"sharedNodeMap": {
"SpatialAnalysisGraph/detector": "sharedDetector",
"SpatialAnalysisGraph/facemask": "sharedFacemask",
"SpatialAnalysisGraph/cameracalibrator": "sharedCalibrator"
},
"parameters": {
"VIDEO_URL": "https://teamfileshare.blob.core.windows.net/spatialanalysis-demo-data/zone-checkout.mp4?sp=r&st=2021-04-25T20:23:57Z&se=2023-04-26T04:23:57Z&spr=https&sv=2020-02-10&sr=b&sig=gUrgXbsZVM6QRP%2B9DdbdFXKhDAP0ndVNIjrbxurktzA%3D",
"VIDEO_SOURCE_ID": "Checkout Area",
"VIDEO_IS_LIVE": false,
"VIDEO_DECODE_GPU_INDEX": 0,
"SPACEANALYTICS_CONFIG": "{\"zones\":[{\"name\":\"queue\",\"polygon\":[[0.348,0.512],[0.764,0.687],[0.662,0.927],[0.221,0.605],[0.348,0.512]], \"events\": [{\"type\":\"zonecrossing\", \"config\":{\"trigger\": \"event\", \"threshold\":48.0, \"focus\": \"footprint\"}}, {\"type\":\"zonedwelltime\", \"config\":{\"trigger\": \"event\", \"threshold\":16.0, \"focus\": \"footprint\"}}]}]}"
},
"enabled": true
},
"storeEntrance": {
"sharedNodeMap": {
"SpatialAnalysisGraph/detector": "sharedDetector",
"SpatialAnalysisGraph/facemask": "sharedFacemask",
"SpatialAnalysisGraph/cameracalibrator": "sharedCalibrator"
},
"parameters": {
"VIDEO_URL": "https://teamfileshare.blob.core.windows.net/spatialanalysis-demo-data/line-crossing.mp4?sp=r&st=2021-04-26T22:53:17Z&se=2024-04-27T06:53:17Z&spr=https&sv=2020-02-10&sr=b&sig=sfy4Z%2BQPnMnL2wqA5F0Mw0VVGIoqHG1vtr0IhvhqCuI%3D",
"VIDEO_SOURCE_ID": "Store Entrance",
"VIDEO_IS_LIVE": false,
"VIDEO_DECODE_GPU_INDEX": 0,
"SPACEANALYTICS_CONFIG": "{\"lines\": [{\"name\": \"Line 1\",\"line\":{\"start\":{\"x\":0.839,\"y\":0.367},\"end\":{\"x\":0.925,\"y\":0.428}},\"events\": [{\"type\": \"linecrossing\",\"config\": {\"trigger\": \"event\",\"focus\": \"footprint\",\"threshold\": 16}}]}]}"
},
"enabled": true
},
"checkoutArea": {
"sharedNodeMap": {
"SpatialAnalysisGraph/detector": "sharedDetector",
"SpatialAnalysisGraph/facemask": "sharedFacemask",
"SpatialAnalysisGraph/cameracalibrator": "sharedCalibrator"
},
"parameters": {
"VIDEO_URL": "https://teamfileshare.blob.core.windows.net/spatialanalysis-demo-data/zone-checkout.mp4?sp=r&st=2021-04-25T20:23:57Z&se=2023-04-26T04:23:57Z&spr=https&sv=2020-02-10&sr=b&sig=gUrgXbsZVM6QRP%2B9DdbdFXKhDAP0ndVNIjrbxurktzA%3D",
"VIDEO_SOURCE_ID": "Checkout Area (Facemask Compliance)",
"VIDEO_IS_LIVE": false,
"VIDEO_DECODE_GPU_INDEX": 0,
"SPACEANALYTICS_CONFIG": "{\"zones\":[{\"name\":\"queue\",\"polygon\":[[0.348,0.512],[0.764,0.687],[0.662,0.927],[0.221,0.605],[0.348,0.512]], \"events\": [{\"type\":\"count\", \"config\":{\"trigger\": \"event\", \"threshold\":16.0, \"focus\": \"footprint\"}}]}]}"
},
"enabled": true
},
"Store": {
"sharedNodeMap": {
"SpatialAnalysisGraph/detector": "sharedDetector",
"SpatialAnalysisGraph/facemask": "sharedFacemask",
"SpatialAnalysisGraph/cameracalibrator": "sharedCalibrator"
},
"parameters": {
"VIDEO_URL": "https://teamfileshare.blob.core.windows.net/spatialanalysis-demo-data/zone-checkout.mp4?sp=r&st=2021-04-25T20:23:57Z&se=2023-04-26T04:23:57Z&spr=https&sv=2020-02-10&sr=b&sig=gUrgXbsZVM6QRP%2B9DdbdFXKhDAP0ndVNIjrbxurktzA%3D",
"VIDEO_SOURCE_ID": "Checkout Area (Social Distancing)",
"VIDEO_IS_LIVE": false,
"VIDEO_DECODE_GPU_INDEX": 0,
"SPACEANALYTICS_CONFIG": "{\"zones\":[{\"name\":\"queue\",\"polygon\":[[0.348,0.512],[0.764,0.687],[0.662,0.927],[0.221,0.605],[0.348,0.512]], \"events\": [{\"type\":\"persondistance\", \"config\":{\"trigger\": \"event\", \"threshold\":48.0, \"focus\": \"footprint\"}}]}]}"
},
"enabled": true
}
},
"enabled": true
}
}
}
}
}
}