Function: create_feature_info

C Prototype

aclfvFeatureInfo *aclfvCreateFeatureInfo(uint32_t id0, uint32_t id1, uint32_t offset, uint32_t featureLen, uint32_t featureCount, uint8_t *featureData, uint32_t featureDataLen)

Python Function

feature_info = acl.fv.create_feature_info(id0, id1, offset, feature_len, feature_count, feature_data, feature_len)

Function Usage

Creates data of the aclfvFeatureInfo type for feature description.

To destroy data of the aclfvFeatureInfo type, call Function: destroy_feature_info.

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Input Description

  • id0: int, repository 0 ID. Must be in the range [0, 1023]. Defaults to 0 in N:M mode. id0 and id1 together identify a repository.

  • id1: int, repository 1 ID. Must be in the range [0, 1023]. Defaults to 0 in N:M mode. id0 and id1 together identify a repository.
  • offset: int, offset of the first feature in the repository. The offset value must be consistent with the number of features that have been added to the repository. Defaults to 0 in N:M mode.
  • feature_len: int, feature length, fixed to 36 bytes. The system verifies the length internally.
  • feature_count: int, feature number. Up to 1 million in 1:N mode or 10 million in N:M mode.
  • feature_data: int, feature values, which are stored contiguously based on the feature length. The first 4 bytes of each feature are 0.
  • feature_len: int, length of the memory allocated for featureData, which is used for verification.

Return Value

feature_info: int, pointer address.

  • Success: data of the aclfvFeatureInfo type.
  • Failure: 0.

Restrictions

None