Go to documentation repository
Documentation for Axxon One 2.0. Documentation for other versions of Axxon One is available too.
The configuration of recognition lists and data is described in the RealtimeRecognizer.proto file.
The following 4 methods are used:
- ChangeLists.
- ChangeItems.
- GetLists.
- GetItems.
ChangeLists method
This method is used to add, edit and delete lists.
Input data
As an argument, the ChangeListsRequest structure is passed, in which 3 input data vectors are filled:
- added_lists − a vector of lists to add;
- changed_lists − a vector of lists to edit;
- removed_list_ids − a vector of list IDs to delete.
The lists themselves are a data structure with fields:
- id −a list id;
- name − a list name;
- description − comments to a list;
- score − minimum recognition level, the default is 0.85;
- item_ids − a list of image IDs, which are used for recognition;
- type − recognition type, ELT_Face − for faces, ELT_LPR − for license plate numbers, ELT_Food − for food (dishes).
Outputs
In response to the method, you will receive a summary of list IDs that could not be added, edited or deleted.
ChangeItems method
This method is used to add, edit and delete the source data for the recognizer.
Input data
As an argument, the ChangeItemsRequest structure is passed, in which 3 input data vectors are filled:
- added_items − a data vector to add;
- changed_items − a data vector to edit;
- removed_item_ids − a vector of data IDs to delete.
The data are a data structure with fields:
- id − data id;
- name − data name;
- description − comments to data;
- type − data type, DT_ImageFace − for faces, DT_Plate − for license plate numbers, DT_ImagesFood − for food (dishes);
- data − the data themself, depending on the type. For faces it is a single image, for food it is an array of images, for license plate numbers it is a number in the form of text;
- data_vectors − vector of images (not specified).
The image has 2 fields: the id of the image and the image itself.
If you fill in only the id of the image during the editing, i.e. when the changed_items vector is formed, this will mean that the image with this id should be removed from the configuration.
Outputs
In response to the method, you will receive a summary of data IDs and image IDs that could not be added, edited or deleted.
GetLists method
This method displays the information about the lists in the configuration.
Input data
As an argument, the GetListsRequest structure is passed, in which 2 fields are filled:
- list_ids − an array of list IDs, which should be received;
- type − the type of lists: ELT_Face, ELT_LPR, ELT_Food.
These fields work as filters and can be passed together or separately.
Outputs
In response to the method, you will receive an array of lists.
GetItems method
This method displays the information about the data in the configuration.
Input data
As an argument, the GetItemsRequest structure is passed, in which 3 fields are filled:
- item_ids − an array of data IDs, which should be received;
- load_images − the flag indicating the need to display an image with the response;
- load_vectors − the flag indicating the need to display the images vector.
Outputs
In response to the method, you will receive an array of data.