Go to documentation repository
Documentation for Axxon One 2.0. Documentation for other versions of Axxon One is available too.
Get the list of detector parameters
To get the list of detector parameters, do the following:
Use ListUnits to request the required detector.
Request body:{ "method":"axxonsoft.bl.config.ConfigurationService.ListUnits", "data":{ "unit_uids": ["hosts/D-COMPUTER/AVDetector.2"] } }
Get the response. It will have all parameters of the detector.
Response example:The list of the detector parameters is received.
Make a request to change the configuration of the detector main parameter
To make a request to change the configuration of the detector main parameter, do the following:
Select the required main parameter.
For example, “Minimal similarity”.where{ "id": "plateProbMin", "name": "Minimal similarity", "description": "Specify in % the minimal similarity to the template required for recognition.", "category": "", "type": "int32", "readonly": false, "internal": false, "range_constraint": { "min_int": 0, "max_int": 100, "default_int": 40 }, "value_int32": 40 }
- id—detector parameter ID;
value—parameter value.
Note
The value parameter must be used as in the response.
For example, "value_int32": 40.
- "value_int32"—integer type;
- "value_string"—string type;
- "value_bool"—boolean type, accepting only True or False.
Note
If the parameter has a range of the available values, you should set the value within the defined range.
Make a request for editing.
Request example:{ "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data": { "changed": [ { "uid": "hosts/D-COMPUTER/AVDetector.2", "type": "AVDetector", "properties": [ { "id": "plateProbMin", "value_int32": 100 } ] } ] } }
Request to change the configuration of the detector main parameter is made.
Make a request to change the configuration of an optional detector parameter
To make a request to change the configuration of an optional detector parameter, do the following:
Select the required optional parameter.
For example, "Detection area (rectangle)".where
- uid—detector ID;
- type—detector type;
- id—detector parameter ID;
value—parameter value.
Note
The value parameter must be used as in the response.
For example, "value_int32": 40.
- "value_int32"—integer type;
- "value_string"—string type;
- "value_bool"—boolean type, accepting only True or False.
Note
If the parameter has a range of the available values, you should set the value within the defined range.
Make a request for editing.
Request example:{ "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig", "data": { "changed": [ { "uid": "hosts/D-COMPUTER/AVDetector.2/VisualElement.19aa889c-a00b-470c-9d7f-765fbc49e5c2", "type": "VisualElement", "properties": [ { "id": "rectangle", "value_rectangle": { "x": 0.21, "y": 0.41, "w": 0.58, "h": 0.88, "index": 0 } } ] } ] } }
Request to change the configuration of an optional detector parameter is made.