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 인식 목록 및 데이터의 구성은 RealtimeRecognizer.proto file.The 파일에 설명되어 있습니다.

다음 4개의 메서드가 사용됩니다 following 4 methods are used:

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

ChangeLists

...

메서드

이 메서드는 목록을 추가, 편집 및 삭제하는 데 사용됩니다.

입력 데이터

ChangeListsRequest 구조체가 인수로 전달되며 이 구조체에는 3개의 입력 데이터 벡터가 채워집니다.

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 add;추가할 목록의 벡터
  2. changed_lists − a vector of lists to edit;편집할 목록의 벡터
  3. removed_list_ids − a vector of list IDs to delete.

The lists themselves are a data structure with fields:

  1. 삭제할 목록 ID의 벡터

목록 자체는 다음과 같은 필드를 가진 데이터 구조입니다.

  1. id −목록 id
  2. name − 목록 이름
  3. description − 목록에 대한 설명
  4. score − 최소 인식 수준, 기본값은 0.85
  5. item_ids − 인식에 사용되는 이미지 ID 목록
  6. type − 인식 유형
  7. id −a list id;
  8. name − a list name;
  9. description − comments to a list;
  10. score − minimum recognition level, the default is 0.85;
  11. item_ids − a list of image IDs, which are used for recognition;
  12. type − recognition type, ELT_Face for faces 얼굴 인식용, ELT_LPRfor 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:

출력

메서드에 대한 응답으로, 추가, 편집 또는 삭제할 수 없었던 목록 ID의 요약이 반환됩니다.

ChangeItems 메서드

이 메서드는 인식기를 위한 소스 데이터를 추가, 편집 및 삭제하는 데 사용됩니다.

입력 데이터

ChangeItemsRequest 구조체가 인수로 전달되며, 이 구조체에는 3개의 입력 데이터 벡터가 채워집니다.

  1. added_items − 추가할 데이터 벡터
  2. changed_items − 편집할 데이터 벡터
  3. added_items − a data vector to add;
  4. changed_items − a data vector to edit;
  5. removed_item_ids − a vector of data IDs to delete. 

The data are a data structure with fields:

  1. 삭제할 데이터 ID의 벡터

데이터는 다음과 같은 필드를 가진 데이터 구조입니다.

  1. id − 데이터 id
  2. name − 데이터 이름
  3. description − 데이터에 대한 설명
  4. type − 데이터 유형
  5. id − data id;
  6. name − data name;
  7. description − comments to data;
  8. type − data type, DT_ImageFace for faces 얼굴 인식용, DT_Plate for license plate numbers 차량 번호판 인식용, DT_ImagesFood − for food 음식(dishes요리) ;인식용
  9. 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;데이터 자체, 유형에 따라 다름. 얼굴의 경우 단일 이미지, 음식의 경우 이미지 배열, 차량 번호판의 경우 텍스트 형식의 번호
  10. 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:

  1. 이미지 벡터 (지정되지 않음)

이미지는 두 가지 필드를 가집니다.

편집 시, 즉 changed_items 벡터가 형성될 때 이미지 ID만 입력하면, 이 ID의 이미지는 구성에서 삭제되어야 함을 의미합니다.

출력

메서드에 대한 응답으로, 추가, 편집 또는 삭제할 수 없었던 데이터 ID와 이미지 ID의 요약이 반환됩니다.

GetLists 메서드

이 메서드는 구성에 있는 목록에 대한 정보를 표시합니다.

입력 데이터

GetListsRequest 구조체가 인수로 전달되며 이 구조체에는 2개의 필드가 채워집니다.

  1. list_ids − 받을 목록 ID 배열
  2. type − 목록 유형
  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

As an argument, the GetItemsRequest structure is passed, in which 3 fields are filled:

  1. item_ids − an array of data IDs, which should be received;
  2. load_images − the flag indicating the need to display an image with the response;
  3. load_vectors − the flag indicating the need to display the images vector.

Outputs

이 필드는 필터로 작동하며 함께 또는 별도로 전달할 수 있습니다.

출력

메서드에 대한 응답으로, 목록 배열이 반환됩니다.

GetItems 메서드

이 메서드는 구성에 있는 데이터에 대한 정보를 표시합니다.

입력 데이터

GetItemsRequest 구조체가 인수로 전달되며, 이 구조체에는 3개의 필드가 채워집니다.

  1. item_ids − 받을 데이터 ID 배열
  2. load_images − 응답과 함께 이미지를 표시할지 여부를 나타내는 플래그
  3. load_vectors − 이미지 벡터를 표시할지 여부를 나타내는 플래그

출력

메서드에 대한 응답으로, 데이터 배열이 반환됩니다In response to the method, you will receive an array of data.