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
probe
FaceTemplatein The face template probe.max_candidates
intin 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
probe
FaceTemplatein The face template probe.maxCandidates
intin 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
probe
FaceTemplatein The face template probe.maxCandidates
intin 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
probe
FaceTemplatein The face template probe.maxCandidates
intin 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
probe
FaceTemplatein The face template probe.maxCandidates
Int32in 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
hFaceIndexer
ID3_FACE_INDEXERin Handle to the FaceIndexer object.hProbe
ID3_FACE_TEMPLATEin The face template probe.maxCandidates
intin Maximum number of candidates in the candidate list.hCandidates
ID3_FACE_CANDIDATE_LISTout The list of candidates sorted by decreasing match score.
Returns