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

in The face template probe.

max_candidates int
in 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

in The face template probe.

maxCandidates int
in 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

in The face template probe.

maxCandidates int
in 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

in The face template probe.

maxCandidates int
in 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

in The face template probe.

maxCandidates Int32
in 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_INDEXER
in Handle to the FaceIndexer object.

in The face template probe.

maxCandidates int
in Maximum number of candidates in the candidate list.

out The list of candidates sorted by decreasing match score.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.