FaceIndexer.searchTemplate Method¶
Module: FaceIndexer
Definition¶
Performs a one-to-many search of a face template probe against a previously initialized face indexer and outputs a candidate list.
This function is thread safe with other SearchTemplate() calls but not with AddTemplate() calls.
search_template(self, probe: FaceTemplate, max_candidates: int) -> FaceCandidateList
Parameters
probeFaceTemplatein The face template probe.max_candidatesintin Maximum number of candidates in the candidate list.
Returns
The list of candidates sorted by decreasing match score.
Exceptions
An error has occurred during Face Library execution.
FaceCandidateList searchTemplate(FaceTemplate probe, int maxCandidates)
Parameters
probeFaceTemplatein The face template probe.maxCandidatesintin Maximum number of candidates in the candidate list.
Returns
The list of candidates sorted by decreasing match score.
Exceptions
An error has occurred during Face Library execution.
public FaceCandidateList SearchTemplate(FaceTemplate probe, int maxCandidates)
Parameters
probeFaceTemplatein The face template probe.maxCandidatesintin Maximum number of candidates in the candidate list.
Returns
The list of candidates sorted by decreasing match score.
Exceptions
An error has occurred during Face Library execution.
public FaceCandidateList searchTemplate(FaceTemplate probe, int maxCandidates) throws FaceException
Parameters
probeFaceTemplatein The face template probe.maxCandidatesintin Maximum number of candidates in the candidate list.
Returns
The list of candidates sorted by decreasing match score.
Exceptions
An error has occurred during Face Library execution.
public func searchTemplate(probe: FaceTemplate, maxCandidates: Int32) throws -> FaceCandidateList
Parameters
probeFaceTemplatein The face template probe.maxCandidatesInt32in Maximum number of candidates in the candidate list.
Returns
The list of candidates sorted by decreasing match score.
Exceptions
An error has occurred during Face Library execution.
int id3FaceIndexer_SearchTemplate (
ID3_FACE_INDEXER hFaceIndexer,
ID3_FACE_TEMPLATE hProbe,
int maxCandidates,
ID3_FACE_CANDIDATE_LIST hCandidates)
Parameters
hFaceIndexerID3_FACE_INDEXERin Handle to the FaceIndexer object.hProbeID3_FACE_TEMPLATEin The face template probe.maxCandidatesintin Maximum number of candidates in the candidate list.hCandidatesID3_FACE_CANDIDATE_LISTout The list of candidates sorted by decreasing match score.
Returns