Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The configuration of recognition lists and data is described in the Konfigurowanie list rozpoznawania oraz dat jest opisane w pliku RealtimeRecognizer.proto file.

The following 4 methods are usedNastępujące 4 metody są dostępne:

  1. ChangeLists
  2. ChangeItems
  3. GetLists
  4. GetItems

Metoda ChangeLists

...

Metoda ta służy do dodawania, edytowania oraz usuwania list.

Dane wejściowe

Struktura ChangeListsRequest jest przekazywana jako argument, w którym uzupełniane są 3 wektory danych wejściowych

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:

  1. added_lists - a vector of lists to addwektor list do dodania;
  2. changed_lists - a vector of lists to editwektor list do edycji;
  3. removed_list_ids - a vector of list IDs to delete.wektor ID list do usunięcia.

Listy są strukturami danych o polachThe lists themselves are a data structure with fields:

  1. id - a list idID listy;
  2. name - a list namenazwa listy;
  3. description - comments to a listkomentarze do listy;
  4. score - minimum recognition level, the default is minimalny poziom rozpoznawania; domyślny poziom: 0.85;
  5. item_ids - a list of image IDs, which are used for recognitionlista ID obrazów, które zostały użyte do rozpoznawania;
  6. type - recognition type,typ rozpoznawania; ELT_Face - for facesdla twarzy, ELT_LPR - for license plate numbersdla tablic rejestracyjnych, ELT_Food - for food dla jedzenia (dishespotraw).

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

Wyjścia

W odpowiedzi do tych metod otrzymywane są podsumowania ID list, które nie mogły być dodane, usunięte, bądź zedytowane.

Metoda ChangeItems

Metoda ta służy do dodawania, edytowania i usuwania danych źródłowych dla procesu rozpoznawania.

Dane wejściowe

Jako argument przyjmowana jest struktura ChangeItemsRequest, w której 3 wektory danych wejściowych są uzupełnianeAs an argument, the ChangeItemsRequest structure is passed, in which 3 input data vectors are filled:

  1. added_items - a data vector to addwektor danych do dodania;
  2. changed_items - a data vector to editwektor danych do edycji;
  3. removed_item_ids - a vector of data IDs to delete. wektor ID danych do usunięcia. 

Dane to struktury danych o polachThe data are a data structure with fields:

  1. id - data idID danych;
  2. name - data namenazwa danych;
  3. description - comments to datakomentarze do danych;
  4. type - data type,typ danych;  DT_ImageFace - for facesdla twarzy, DT_Plate - for license plate numbersdla tablic rejestracyjnych, DT_ImagesFood - for food dla jedzenia (dishespotraw);
  5. 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 textsame dane, zalezne od typu. Dla twarzy - pojedynczy obraz, dla jedzenia - tabela obrazów, dla tablic rejestracyjnych - sam identyfikator tablicy w formie tekstu.
  6. data_vectors - vector of images (not specifiedwektory obrazu (nieokreślone).

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:

Obraz ma 2 pola: ID obrazu oraz sam obraz.

Jeśli wypełnione zostaną jedynie ID dla obrazu podczas edycji, tzn. gdy wektor changed_items jest konstruowany, będzie to oznaczać, że obraz o danym ID został usunięty z konfiguracji.

Wyjścia

W odpowiedzi do tej metody dostarczone zostaną podsumowania ID danych oraz ID obrazów, które nie mogły zostać dodane, zedytowane bądź usunięte.

Metoda GetLists

Metoda ta wyświetla informacje na temat list w konfiguracji.

Wejście danych

Jako argument przekazywana jest struktura GetListsRequest z wypełnionymi dwoma polami:

  1. list_ids - tablica ID list, które powinny zostać otrzymane;
  2. type - typ list
  3. list_ids - an array of list IDs, which should be received;
  4. 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

Pola te działają jako filtry; mogą być przekazane razem bądź osobno.

Wyjścia

W odpowiedzi na tę metodę otrzymana zostanie tablica list.

Metoda GetItems

Metoda ta wyświetla informacje na temat danych w konfiguracji.

Wejście danych

Jako argument przyjmowana jest struktura GetItemsRequest z trzema wypełnionymi polamiAs an argument, the GetItemsRequest structure is passed, in which 3 fields are filled:

  1. item_ids - an array of data IDs, which should be receivedtabela ID danych, które powinny zostać przekazane;
  2. load_images - the flag indicating the need to display an image with the responseflaga wskazująca potrzebę wyświetlania obrazu w odpowiedzi;
  3. load_vectors -  the flag indicating the need to display the images vector.

Outputs

  1. flaga wskazująca potrzebę wyświetlania wektorów obrazów.

Wyjścia

W odpowiedzi na tę metodę przekazana zostanie tabela danychIn response to the method, you will receive an array of data.