/
topology.json
114 lines (114 loc) · 3.17 KB
/
topology.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
{
"@apiVersion": "1.1",
"name": "InferencingWithOpenVINOgRPC",
"properties": {
"description": "Analyzing live video using gRPCExtension to send video frames to the OpenVINO DL Streamer – Edge AI Extension module, from Intel",
"parameters": [
{
"name": "rtspUrl",
"type": "String",
"description": "Rtsp source Url address"
},
{
"name": "rtspUserName",
"type": "String",
"description": "Rtsp source user name.",
"default": "dummyUsername"
},
{
"name": "rtspPassword",
"type": "String",
"description": "Rtsp source password.",
"default": "dummyPassword"
},
{
"name": "grpcExtensionAddress",
"type": "String",
"description": "Address of the gRPC Server",
"default": "tcp://avaextension:5001"
},
{
"name": "grpcExtensionUserName",
"type": "String",
"description": "inferencing endpoint user name.",
"default": "dummyUserName"
},
{
"name": "grpcExtensionPassword",
"type": "String",
"description": "inferencing endpoint password.",
"default": "dummyPassword"
},
{
"name": "extensionConfiguration",
"type": "String",
"description": "Optional extension configuration for the gRPC server",
"default": "{}"
},
{
"name": "hubSinkOutputName",
"type": "String",
"description": "Hub sink output name",
"default": "iothubsinkoutput"
}
],
"sources": [
{
"@type": "#Microsoft.VideoAnalyzer.RtspSource",
"name": "rtspSource",
"endpoint": {
"@type": "#Microsoft.VideoAnalyzer.UnsecuredEndpoint",
"url": "${rtspUrl}",
"credentials": {
"@type": "#Microsoft.VideoAnalyzer.UsernamePasswordCredentials",
"username": "${rtspUserName}",
"password": "${rtspPassword}"
}
}
}
],
"processors": [
{
"@type": "#Microsoft.VideoAnalyzer.GrpcExtension",
"name": "grpcExtension",
"endpoint": {
"@type": "#Microsoft.VideoAnalyzer.UnsecuredEndpoint",
"url": "${grpcExtensionAddress}",
"credentials": {
"@type": "#Microsoft.VideoAnalyzer.UsernamePasswordCredentials",
"username": "${grpcExtensionUserName}",
"password": "${grpcExtensionPassword}"
}
},
"extensionConfiguration": "${extensionConfiguration}",
"dataTransfer": {
"mode": "sharedMemory",
"SharedMemorySizeMiB": "64"
},
"image": {
"format": {
"@type": "#Microsoft.VideoAnalyzer.ImageFormatRaw",
"pixelFormat": "bgr24"
}
},
"inputs": [
{
"nodeName": "rtspSource"
}
]
}
],
"sinks": [
{
"@type": "#Microsoft.VideoAnalyzer.IotHubMessageSink",
"name": "hubSink",
"hubOutputName": "${hubSinkOutputName}",
"inputs": [
{
"nodeName": "grpcExtension"
}
]
}
]
}
}