Go to documentation repository
Page History
...
Section | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Tip |
---|
...
Pozyskaj informacje o urządzeniu
Code Block |
---|
{ "method": "axxonsoft.bl.config.ConfigurationService.ListUnits", "data": { "unit_uids": [ "hosts/Server1/DeviceIpint.10" ] } } |
Response examplePrzykładowa odpowiedź:
Expand | ||
---|---|---|
| ||
|
The units field properties contain the following information:
Właściwości pola units zawierają następujące informacje:
- nazwę urządzenia,
- producenta,
- model urządzenia,
- adres IP
- device name,
- manufacturer,
- device model,
- IP address,
- port,
- firmware,
- login and passwordoraz hasło,
- geolocation datadane geolokalizacji.
The child objects of the device (video channels, streams, microphones, speakers, telemetry, sensors and relays) will be indicated in child units.
Get information about device child objects
Obiekty dziedziczące urządzenia (kanały wideo, strumienie, mikrofony, głośniki, telemetria, czujniki oraz przekaźniki) będą wyświetlane w units dziecka.
Pozyskaj informacje o obiektach dziedziczących urządzenia
Przykład zapytania o informacje o kanale wideoRequest example for getting information about a video channel:
Code Block |
---|
{ "method":"axxonsoft.bl.config.ConfigurationService.ListUnits", "data":{ "unit_uids":["hosts/Server1/DeviceIpint.10/VideoChannel.0"] } } |
ResponseOdpowiedź:
Expand | ||
---|---|---|
| ||
|
The properties contain the video parameters, the child ones contain streams and detection tools, if created.
Change the configuration
Adding the device
properties zawiera parametry wideo, a "dzieci" zawierają strumienie i narzędzia detekcji, o ile zostały utworzone.
Zmiana konfiguracji
Dodawanie urządzenia
Dodawanie wirtualnej kamery wideo bez ustawieńAdding a virtual video camera without settings:
Expand | ||
---|---|---|
|
where uid is the Server where the device is created.
gdzie uid to Serwer, na którym urządzenie zostanie utworzone.
Jako wynik tworzona zostaje kamera z obiektami dziedziczącymi: mikrofonem, wbudowanym archiwum oraz czujnikiem. Wszystkie obiekty dziedziczące oprócz kanału wideo będą wyłączoneAs a result, a camera with a child microphone, an embedded archive and a sensor will be created. All child objects except the video channel will be turned off.
Code Block |
---|
{ "failed": [], "added": ["hosts/Server1/DeviceIpint.199"] } |
where 199 is the id of the created devicegdzie199 to id utworzonego urządzenia.
Info | ||
---|---|---|
| ||
In some cases, the id of the created device may not coincide with the specified value of display_id in the request. |
...
| |
W niektórych przypadkach wartość id utworzonego urządzenia może nie być taka sama, co wartość określona w display_id zapytania. |
Tworzenie narzędzia Analizy Wideo
Code Block |
---|
{ "method":"axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data":{ "added": { "uid": "hosts/Server1", "units": { "type": "AVDetector", "properties": [ { "id": "display_name", "value_string": "Object tracker" }, { "id": "input", "value_string": "Video", "properties": [ { "id": "camera_ref", "value_string": "hosts/Server1/DeviceIpint.200/SourceEndpoint.video:0:0", "properties": [ { "id": "streaming_id", "value_string": "hosts/Server1/DeviceIpint.200/SourceEndpoint.video:0:0" } ] }, { "id": "detector", "value_string": "SceneDescription" } ] } ] } } } } |
...
Tworzenia narzędzia detekcji Ruchu w strefie dla narzędzia Analizy Obrazu
Code Block |
---|
{ "method":"axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data":{ "added": { "uid": "hosts/Server1", "units": { "type": "AppDataDetector", "properties": [ { "id": "display_name", "value_string": "AppDataDetectorMoveInZone" }, { "id": "input", "value_string": "TargetList", "properties": [ { "id": "camera_ref", "value_string": "hosts/Server1/DeviceIpint.200/SourceEndpoint.video:0:0", "properties": [ { "id": "streaming_id", "value_string": "hosts/Server1/AVDetector.1/SourceEndpoint.vmda" } ] }, { "id": "detector", "value_string": "MoveInZone" } ] } ] } } } } |
...
Zmiana folderu wideo dla wirtualnej kamery
Code Block |
---|
{ "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data": { "changed": [ { "uid": "hosts/Server1/DeviceIpint.199/VideoChannel.0/Streaming.0", "type": "Streaming", "properties": [ { "id": "folder", "value_string": "D:/Video" } ], "opaque_params": [] } ] } |
Enabling/disabling the object
Each unit contains an enabled property.
Włączanie/wyłączanie obiektu
Każda jednostka (unit) zawiera właściwość enabled.
Włączanie mikrofonuEnabling the microphone:
Code Block |
---|
{ "method":"axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data":{ "changed":[{ "uid": "hosts/Server1/DeviceIpint.10/Microphone.0", "type": "Microphone", "properties": [ { "id": "enabled", "value_bool": true } ], "units":[] }] } } |
...
Usuwanie urządzenia
Code Block |
---|
{ "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data": { "removed": [ { "uid": "hosts/Server1/DeviceIpint.199" } ] } } |
...