Get

Function

It is used to get the AI > Repeat Customer:MatchAddedFaces parameters.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
MsgIdnull
Engine0intSearch engine, 0 or 1, should be consistent with /API/AI/SnapedFaces/Search
Similarity70intSimilarity to use when matching
GrpIds[1, 2, 3, 5]int arrayWhich groups of faces in the bottom library are used to identify the identity, if not given or empty, it means that all groups (but not including Internal) are used, generally not given
UUIds[200053, 200059, 210010, ...]unsigned int arrayThe elements in the array represent the unique identification of the captured face

Sample:

POST /API/AI/MatchAddedFaces/Get HTTP/1.1
{
	"version": "1.0",
	"data": {
		"MsgId": "",
		"Similarity": 70,
		"GrpIds": [],
		"Engine": 1,
		"UUIds": [21411, 21409, 21408, 21407, 21405, ...]
	}
}

Response Message

Parameter Description

Table 2

ParameterRangeTypeDescription
MsgIdnull
Result0intGet the result of returning customer status, 0 means success. see table Table 3 details
FaceIds[3, -1, -1, 2, ...]long long arrayThe matched faces in the bottom library, the elements in this array correspond to the "UUIds" array in the request one by one, -1 means that there is no face matching it in the bottom library

Table 3

Result TypeCOMMENT
AORT_SUCCESS = 0success
AORT_NO_DB = -1no database
AORT_DB_EXEC_FAILED = -2Database execution failed
AORT_CALC_FEATURE_FAILED = -3feature extraction failed
AORT_CANCELED = -4Cancelled
AORT_NO_DISK = -5no hard drive
AORT_DISK_ERROR = -6hard disk error
AORT_EXIST = -7existed
AORT_GROUP_INVALID = -8group invalid
AORT_NOT_EXIST = -9does not exist
AORT_MORE_FILE_EXIST = -10File already exists
AORT_SEARCH_ERROR = -11search error
AORT_OVER_MAX_COUNT = -12limit exceeded
AORT_UPDATING_FEATURE = -13Updating feature values
AORT_NO_USABLE_IPC = -14No IPC available for eigenvalue calculation
AORT_INVALID_PARAM = -15invalid parameter
AORT_INVALID_FORMAT = -16wrong format
AORT_INVALID_RES = -17wrong resolution
AORT_INVALID_MEM = -18file too large error
AORT_CREAT_FAILED = -19Creation failed
AORT_MD5_NOT_MATCH = -20MD5 mismatch
AORT_POS_ERROR = -21location error
AORT_SIZE_ERROR = -22wrong size
AORT_NOT_READY = -23not ready
AORT_INVALID_DB = -24invalid database

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"data": {
		"MsgId": "",
		"Result": 0,
		"FaceIds": [25, 25, 25, -1, 25, ...]
	}
}

Error Code

See Response Messages Body and Common error_code for more information.