Go to documentation repository
Page History
...
The following 4 methods are used:
- ChangeLists.
- ChangeItems.
- GetLists.
- GetItems.
ChangeLists method
This method is used to add, edit and delete lists.
...
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 −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 − for faces, ELT_LPR - − for license plate numbers, ELT_Food - for − 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.
...
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 − for faces, DT_Plate - for − for license plate numbers, DT_ImagesFood - for 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 for license plate numbers it is a number in the form of text.;
- data_vectors - − vector of images (not specified).
...
As an argument, the GetListsRequest structure is passed, in which 2 fields are filled:
- list_ids - an − an array of list IDs, which should be received;
- type - − the type of lists: ELT_Face, ELT_LPR, ELT_Food.
...
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 − the flag indicating the need to display the images vector.
...
Overview
Content Tools