Go to documentation repository
Previous page Next page
To get the list of detection tool parameters, do the following:
Use ListUnits to request the required detection tool.
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 detection tool.
Response example:
The list of the detection tool parameters is received.
To make a request to change the configuration of the detection tool main parameter, do the following:
Select the required main parameter.
For example, “Minimal similarity”.
{
"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
}
value − parameter value.
Note
The value parameter should be used as in the response.
For example, "value_int32": 40.
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 detection tool main parameter is made.
To make a request to change the configuration of an optional detection tool parameter, do the following:
Select the required optional parameter.
For example, "Detection area (rectangle)".
where
value − parameter value.
Note
The value parameter should be used as in the response.
For example, "value_int32": 40.
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 detection tool parameter is made.