forked from edgexfoundry/device-onvif-camera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
camera.yaml
741 lines (708 loc) · 20.3 KB
/
camera.yaml
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
name: "onvif-camera"
manufacturer: "Generic"
model: "Generic ONVIF"
labels:
- "onvif"
description: "EdgeX device profile for ONVIF-compliant IP camera."
deviceResources:
# Network Configuration
- name: "Hostname"
isHidden: false
description: "Camera Hostname"
attributes:
service: "Device"
getFunction: "GetHostname"
setFunction: "SetHostname"
properties:
valueType: "Object"
readWrite: "RW"
- name: "DNS"
isHidden: false
description: "Camera DNS"
attributes:
service: "Device"
getFunction: "GetDNS"
setFunction: "SetDNS"
properties:
valueType: "Object"
readWrite: "RW"
- name: "NetworkInterfaces"
isHidden: false
description: "Camera NetworkInterfaces"
attributes:
service: "Device"
getFunction: "GetNetworkInterfaces"
setFunction: "SetNetworkInterfaces"
properties:
valueType: "Object"
readWrite: "RW"
- name: "NetworkProtocols"
isHidden: false
description: "Camera NetworkProtocols"
attributes:
service: "Device"
getFunction: "GetNetworkProtocols"
setFunction: "SetNetworkProtocols"
properties:
valueType: "Object"
readWrite: "RW"
- name: "NetworkDefaultGateway"
isHidden: false
description: "Camera NetworkDefaultGateway"
attributes:
service: "Device"
getFunction: "GetNetworkDefaultGateway"
setFunction: "SetNetworkDefaultGateway"
properties:
valueType: "Object"
readWrite: "RW"
# System Function
- name: "DeviceInformation"
isHidden: false
description: "Camera DeviceInformation"
attributes:
service: "Device"
getFunction: "GetDeviceInformation"
properties:
valueType: "Object"
readWrite: "R"
- name: "SystemDateAndTime"
isHidden: false
description: "Camera SystemDateAndTime"
attributes:
service: "Device"
getFunction: "GetSystemDateAndTime"
setFunction: "SetSystemDateAndTime"
properties:
valueType: "Object"
readWrite: "RW"
- name: "SetSystemFactoryDefault"
isHidden: false
description: "This operation reloads the parameters on the camera to their factory default values."
attributes:
service: "Device"
setFunction: "SetSystemFactoryDefault"
properties:
valueType: "Object"
readWrite: "W"
- name: "SystemReboot"
isHidden: false
description: "This operation reboots the camera."
attributes:
service: "Device"
setFunction: "SystemReboot"
properties:
valueType: "Object"
readWrite: "W"
- name: "RebootNeeded"
isHidden: false
description: "This resource indicates the camera should reboot to apply the configuration change"
attributes:
service: "EdgeX"
getFunction: "RebootNeeded"
properties:
valueType: "Bool"
readWrite: "R"
# Metadata Configuration
- name: "MetadataConfiguration"
isHidden: false
description: "Camera MetadataConfiguration"
attributes:
service: "Media"
getFunction: "GetMetadataConfiguration"
setFunction: "SetMetadataConfiguration"
properties:
valueType: "Object"
readWrite: "RW"
- name: "MetadataConfigurations"
isHidden: false
description: "Camera MetadataConfigurations"
attributes:
service: "Media"
getFunction: "GetMetadataConfigurations"
properties:
valueType: "Object"
readWrite: "R"
- name: "CompatibleMetadataConfigurations"
isHidden: false
description: "Camera CompatibleMetadataConfigurations"
attributes:
service: "Media"
getFunction: "GetCompatibleMetadataConfigurations"
properties:
valueType: "Object"
readWrite: "R"
- name: "MetadataConfigurationOptions"
isHidden: false
description: "Camera MetadataConfigurationOptions"
attributes:
service: "Media"
getFunction: "GetMetadataConfigurationOptions"
properties:
valueType: "Object"
readWrite: "R"
- name: "AddMetadataConfiguration"
isHidden: false
description: "Add Camera MetadataConfiguration"
attributes:
service: "Media"
setFunction: "AddMetadataConfiguration"
properties:
valueType: "Object"
readWrite: "W"
- name: "RemoveMetadataConfiguration"
isHidden: false
description: "Remove Camera MetadataConfiguration"
attributes:
service: "Media"
setFunction: "RemoveMetadataConfiguration"
properties:
valueType: "Object"
readWrite: "W"
- name: "CustomMetadata"
isHidden: false
description: "Get and set custom metadata for the camera"
attributes:
service: "EdgeX"
getFunction: "GetCustomMetadata"
setFunction: "SetCustomMetadata"
properties:
valueType: "Object"
readWrite: "RW"
- name: "DeleteCustomMetadata"
isHidden: false
description: "Delete custom metadata for the camera"
attributes:
service: "EdgeX"
setFunction: "DeleteCustomMetadata"
properties:
valueType: "Object"
readWrite: "W"
# Video Streaming
- name: "Profiles"
isHidden: false
description: "Camera Profiles"
attributes:
service: "Media"
getFunction: "GetProfiles"
properties:
valueType: "Object"
readWrite: "R"
- name: "StreamUri"
isHidden: false
description: "Camera StreamUri"
attributes:
service: "Media"
getFunction: "GetStreamUri"
properties:
valueType: "Object"
readWrite: "R"
- name: "Snapshot"
isHidden: false
description: "Camera Snapshot"
attributes:
service: "EdgeX"
getFunction: "GetSnapshot"
properties:
valueType: "Binary"
readWrite: "R"
mediaType: "image/jpeg"
# Video Encoder Configuration
- name: "GetVideoEncoderConfigurations"
isHidden: false
description: "Camera VideoEncoderConfigurations"
attributes:
service: "Media"
getFunction: "GetVideoEncoderConfigurations"
properties:
valueType: "Object"
readWrite: "R"
- name: "VideoEncoderConfiguration"
isHidden: false
description: "Camera VideoEncoderConfiguration"
attributes:
service: "Media"
getFunction: "GetVideoEncoderConfiguration"
setFunction: "SetVideoEncoderConfiguration"
properties:
valueType: "Object"
readWrite: "RW"
- name: "VideoEncoderConfigurationOptions"
isHidden: false
description: "Camera VideoEncoderConfigurationOptions"
attributes:
service: "Media"
getFunction: "GetVideoEncoderConfigurationOptions"
properties:
valueType: "Object"
readWrite: "R"
# User Handling
- name: "Users"
isHidden: false
description: "Camera Users"
attributes:
service: "Device"
getFunction: "GetUsers"
setFunction: "SetUser"
properties:
valueType: "Object"
readWrite: "RW"
- name: "CreateUsers"
isHidden: false
description: "Create camera users"
attributes:
service: "Device"
setFunction: "CreateUsers"
properties:
valueType: "Object"
readWrite: "W"
- name: "DeleteUsers"
isHidden: false
description: "Delete camera users"
attributes:
service: "Device"
setFunction: "DeleteUsers"
properties:
valueType: "Object"
readWrite: "W"
# Auto Discovery
- name: "DiscoveryMode"
isHidden: false
description: "Camera discovery mode"
attributes:
service: "Device"
getFunction: "GetDiscoveryMode"
setFunction: "SetDiscoveryMode"
properties:
valueType: "Object"
readWrite: "RW"
- name: "Scopes"
isHidden: false
description: "Camera discovery scopes"
attributes:
service: "Device"
getFunction: "GetScopes"
setFunction: "SetScopes"
properties:
valueType: "Object"
readWrite: "RW"
- name: "AddScopes"
isHidden: false
description: "Add camera discovery scopes"
attributes:
service: "Device"
setFunction: "AddScopes"
properties:
valueType: "Object"
readWrite: "W"
- name: "RemoveScopes"
isHidden: false
description: "Remove camera discovery scopes"
attributes:
service: "Device"
setFunction: "RemoveScopes"
properties:
valueType: "Object"
readWrite: "W"
# PTZ Configuration
- name: "GetNodes"
isHidden: false
description: "Get the descriptions of the available PTZ Nodes."
attributes:
service: "PTZ"
getFunction: "GetNodes"
properties:
valueType: "Object"
readWrite: "R"
- name: "GetNode"
isHidden: false
description: "Get a specific PTZ Node identified by a reference token or a name."
attributes:
service: "PTZ"
getFunction: "GetNode"
properties:
valueType: "Object"
readWrite: "R"
- name: "GetConfigurations"
isHidden: false
description: "Get all the existing PTZ configurations from the device."
attributes:
service: "PTZ"
getFunction: "GetConfigurations"
properties:
valueType: "Object"
readWrite: "R"
- name: "Configuration"
isHidden: false
description: "Get or set a specific PTZ configuration from the device."
attributes:
service: "PTZ"
getFunction: "GetConfiguration"
setFunction: "SetConfiguration"
properties:
valueType: "Object"
readWrite: "RW"
- name: "GetConfigurationOptions"
isHidden: false
description: "List supported coordinate systems including their range limitations."
attributes:
service: "PTZ"
getFunction: "GetConfigurationOptions"
properties:
valueType: "Object"
readWrite: "R"
- name: "AddPTZConfiguration"
isHidden: false
description: "This operation adds a PTZConfiguration to an existing media profile."
attributes:
service: "Media"
setFunction: "AddPTZConfiguration"
properties:
valueType: "Object"
readWrite: "W"
- name: "RemovePTZConfiguration"
isHidden: false
description: "This operation removes a PTZConfiguration from an existing media profile."
attributes:
service: "Media"
setFunction: "RemovePTZConfiguration"
properties:
valueType: "Object"
readWrite: "W"
# PTZ Actuation
- name: "AbsoluteMove"
isHidden: false
description: "Operation to move pan,tilt or zoom to a absolute destination."
attributes:
service: "PTZ"
setFunction: "AbsoluteMove"
properties:
valueType: "Object"
readWrite: "W"
- name: "RelativeMove"
isHidden: false
description: "Operation for Relative Pan/Tilt and Zoom Move."
attributes:
service: "PTZ"
setFunction: "RelativeMove"
properties:
valueType: "Object"
readWrite: "W"
- name: "ContinuousMove"
isHidden: false
description: "Operation for continuous Pan/Tilt and Zoom movements."
attributes:
service: "PTZ"
setFunction: "ContinuousMove"
properties:
valueType: "Object"
readWrite: "W"
- name: "Stop"
isHidden: false
description: "Operation to stop ongoing pan, tilt and zoom movements of absolute relative and continuous type."
attributes:
service: "PTZ"
setFunction: "Stop"
properties:
valueType: "Object"
readWrite: "W"
- name: "GetStatus"
isHidden: false
description: "Operation to request PTZ status for the Node in the selected profile."
attributes:
service: "PTZ"
getFunction: "GetStatus"
properties:
valueType: "Object"
readWrite: "R"
# PTZ Preset
- name: "SetPreset"
isHidden: false
description: "The SetPreset command saves the current device position parameters so that the device can move to the saved preset position through the GotoPreset operation."
attributes:
service: "PTZ"
setFunction: "SetPreset"
properties:
valueType: "Object"
readWrite: "W"
- name: "GetPresets"
isHidden: false
description: "Operation to request all PTZ presets for the PTZNode in the selected profile."
attributes:
service: "PTZ"
getFunction: "GetPresets"
properties:
valueType: "Object"
readWrite: "R"
- name: "GotoPreset"
isHidden: false
description: "Operation to go to a saved preset position for the PTZNode in the selected profile."
attributes:
service: "PTZ"
setFunction: "GotoPreset"
properties:
valueType: "Object"
readWrite: "W"
- name: "RemovePreset"
isHidden: false
description: "Operation to remove a PTZ preset for the Node in the selected profile. "
attributes:
service: "PTZ"
setFunction: "RemovePreset"
properties:
valueType: "Object"
readWrite: "W"
# PTZ Home Position
- name: "GotoHomePosition"
isHidden: false
description: "Operation to move the PTZ device to it's home position."
attributes:
service: "PTZ"
setFunction: "GotoHomePosition"
properties:
valueType: "Object"
readWrite: "W"
- name: "SetHomePosition"
isHidden: false
description: "Operation to save current position as the home position."
attributes:
service: "PTZ"
setFunction: "SetHomePosition"
properties:
valueType: "Object"
readWrite: "W"
# PTZ Auxiliary Operations
- name: "SendAuxiliaryCommand"
isHidden: false
description: "Operation to send auxiliary commands to the PTZ device mapped by the PTZNode in the selected profile."
attributes:
service: "PTZ"
setFunction: "SendAuxiliaryCommand"
properties:
valueType: "Object"
readWrite: "W"
# Event Handling
- name: "GetEventProperties"
isHidden: true
description: "This resource is used to find out what event a camera supports and what information they contain"
attributes:
service: "Event"
getFunction: "GetEventProperties"
properties:
valueType: "Object"
readWrite: "R"
- name: "OnvifCameraEvent"
isHidden: true
description: "This resource is used to send the async event to north bound"
attributes:
service: "EdgeX"
getFunction: "CameraEvent"
properties:
valueType: "Object"
readWrite: "R"
- name: "PullPointSubscription"
isHidden: true
description: "Create a pull point subscription to pull the event message from the camera"
attributes:
service: "EdgeX"
setFunction: "SubscribeCameraEvent"
# PullPoint | BaseNotification
subscribeType: "PullPoint"
defaultAutoRenew: true
defaultSubscriptionPolicy: ""
defaultInitialTerminationTime: "PT1H"
defaultTopicFilter: ""
defaultMessageContentFilter: ""
defaultMessageTimeout: "PT5S"
defaultMessageLimit: 10
properties:
valueType: "Object"
readWrite: "W"
- name: "BaseNotificationSubscription"
isHidden: true
description: "Create a subscription to subscribe the event from the camera"
attributes:
service: "EdgeX"
setFunction: "SubscribeCameraEvent"
# PullPoint | BaseNotification
subscribeType: "BaseNotification"
defaultAutoRenew: true
defaultSubscriptionPolicy: ""
defaultInitialTerminationTime: "PT1H"
defaultTopicFilter: ""
defaultMessageContentFilter: ""
properties:
valueType: "Object"
readWrite: "W"
- name: "UnsubscribeCameraEvent"
isHidden: true
description: "Unsubscribe all subscription from the camera"
attributes:
service: "EdgeX"
setFunction: "UnsubscribeCameraEvent"
properties:
valueType: "Object"
readWrite: "W"
# Configuration of Analytics profile
- name: "Media2Profiles"
isHidden: false
description: "Get Media2 profiles"
attributes:
service: "Media2"
getFunction: "GetProfiles"
properties:
valueType: "Object"
readWrite: "R"
- name: "GetAnalyticsConfigurations"
isHidden: false
description: "Lists all existing video analytics configurations for a device."
attributes:
service: "Media2"
getFunction: "GetAnalyticsConfigurations"
properties:
valueType: "Object"
readWrite: "R"
- name: "AddConfiguration"
isHidden: false
description: "Adds one or more Configurations to an existing media profile."
attributes:
service: "Media2"
setFunction: "AddConfiguration"
properties:
valueType: "Object"
readWrite: "W"
- name: "RemoveConfiguration"
isHidden: false
description: "Removes the listed configurations from an existing media profile. "
attributes:
service: "Media2"
setFunction: "RemoveConfiguration"
properties:
valueType: "Object"
readWrite: "W"
# Analytics Module configuration
- name: "GetSupportedAnalyticsModules"
isHidden: false
description: "List all analytics modules that are supported by the given VideoAnalyticsConfiguration."
attributes:
service: "Analytics"
getFunction: "GetSupportedAnalyticsModules"
properties:
valueType: "Object"
readWrite: "R"
- name: "AnalyticsModules"
isHidden: false
description: "Get or set one or more analytics modules of a VideoAnalyticsConfiguration. "
attributes:
service: "Analytics"
getFunction: "GetAnalyticsModules"
setFunction: "ModifyAnalyticsModules"
properties:
valueType: "Object"
readWrite: "RW"
- name: "CreateAnalyticsModules"
isHidden: false
description: "Add one or more analytics modules to an existing VideoAnalyticsConfiguration."
attributes:
service: "Analytics"
setFunction: "CreateAnalyticsModules"
properties:
valueType: "Object"
readWrite: "W"
- name: "DeleteAnalyticsModules"
isHidden: false
description: "Remove one or more analytics modules from a VideoAnalyticsConfiguration referenced by their names."
attributes:
service: "Analytics"
setFunction: "DeleteAnalyticsModules"
properties:
valueType: "Object"
readWrite: "W"
- name: "GetAnalyticsModuleOptions"
isHidden: false
description: "Return the options for the supported analytics modules that specify an Option attribute."
attributes:
service: "Analytics"
getFunction: "GetAnalyticsModuleOptions"
properties:
valueType: "Object"
readWrite: "R"
# Rule configuration
- name: "GetSupportedRules"
isHidden: false
description: "List all rules that are supported by the given VideoAnalyticsConfiguration."
attributes:
service: "Analytics"
getFunction: "GetSupportedRules"
properties:
valueType: "Object"
readWrite: "R"
- name: "Rules"
isHidden: false
description: "Get or set one or more rules of a VideoAnalyticsConfiguration."
attributes:
service: "Analytics"
getFunction: "GetRules"
setFunction: "ModifyRules"
properties:
valueType: "Object"
readWrite: "RW"
- name: "CreateRules"
isHidden: false
description: "Add one or more rules to an existing VideoAnalyticsConfiguration."
attributes:
service: "Analytics"
setFunction: "CreateRules"
properties:
valueType: "Object"
readWrite: "W"
- name: "DeleteRules"
isHidden: false
description: "Remove one or more rules from a VideoAnalyticsConfiguration."
attributes:
service: "Analytics"
setFunction: "DeleteRules"
properties:
valueType: "Object"
readWrite: "W"
- name: "GetRuleOptions"
isHidden: false
description: "Return the options for the supported rules that specify an Option attribute."
attributes:
service: "Analytics"
getFunction: "GetRuleOptions"
properties:
valueType: "Object"
readWrite: "R"
deviceCommands:
-
name: "NetworkConfiguration"
readWrite: "RW"
isHidden: false
resourceOperations:
- { deviceResource: "Hostname" }
- { deviceResource: "DNS" }
- { deviceResource: "NetworkInterfaces" }
- { deviceResource: "NetworkProtocols" }
- { deviceResource: "NetworkDefaultGateway" }
-
name: "SystemFunction"
readWrite: "R"
isHidden: false
resourceOperations:
- { deviceResource: "DeviceInformation" }
- { deviceResource: "SystemDateAndTime" }
-
name: "MetadataConfigurationAndOptions"
readWrite: "R"
isHidden: false
resourceOperations:
- { deviceResource: "MetadataConfiguration" }
- { deviceResource: "MetadataConfigurationOptions" }
-
name: "VideoStream"
readWrite: "R"
isHidden: false
resourceOperations:
- { deviceResource: "Profiles" }
- { deviceResource: "StreamUri" }