Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceMatcher.compareTemplateLists Method

Module: FaceMatcher

## Definition

Compares two template lists and outputs a comparison score.

Python

    compare_template_lists(self, reference_list: FaceTemplateList, probe_list: FaceTemplateList, pooling_method: PoolingMethod) -> int

Parameters

> `reference_list` FaceTemplateList
> in Reference template list.
> `probe_list` FaceTemplateList
> in Probe template list.
> `pooling_method` PoolingMethod
> in Pooling method applied during the match process.

Returns

> `int`
> The comparison score, in the range [0;65535].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    int compareTemplateLists(FaceTemplateList referenceList, FaceTemplateList probeList, PoolingMethod poolingMethod)

Parameters

> `referenceList` FaceTemplateList
> in Reference template list.
> `probeList` FaceTemplateList
> in Probe template list.
> `poolingMethod` PoolingMethod
> in Pooling method applied during the match process.

Returns

> `int`
> The comparison score, in the range [0;65535].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public int CompareTemplateLists(FaceTemplateList referenceList, FaceTemplateList probeList, PoolingMethod poolingMethod)

Parameters

> `referenceList` FaceTemplateList
> in Reference template list.
> `probeList` FaceTemplateList
> in Probe template list.
> `poolingMethod` PoolingMethod
> in Pooling method applied during the match process.

Returns

> `int`
> The comparison score, in the range [0;65535].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public int compareTemplateLists(FaceTemplateList referenceList, FaceTemplateList probeList, PoolingMethod poolingMethod) throws FaceException

Parameters

> `referenceList` FaceTemplateList
> in Reference template list.
> `probeList` FaceTemplateList
> in Probe template list.
> `poolingMethod` PoolingMethod
> in Pooling method applied during the match process.

Returns

> `int`
> The comparison score, in the range [0;65535].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func compareTemplateLists(referenceList: FaceTemplateList, probeList: FaceTemplateList, poolingMethod: PoolingMethod) throws -> Int32

Parameters

> `referenceList` FaceTemplateList
> in Reference template list.
> `probeList` FaceTemplateList
> in Probe template list.
> `poolingMethod` PoolingMethod
> in Pooling method applied during the match process.

Returns

> `Int`
> The comparison score, in the range [0;65535].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceMatcher_CompareTemplateLists (
        ID3_FACE_MATCHER hFaceMatcher,
        ID3_FACE_TEMPLATE_LIST hReferenceList,
        ID3_FACE_TEMPLATE_LIST hProbeList,
        id3FacePoolingMethod ePoolingMethod,
        int * score)

Parameters

> `hFaceMatcher` ID3_FACE_MATCHER
> in Handle to the FaceMatcher object.
> `hReferenceList` ID3_FACE_TEMPLATE_LIST
> in Reference template list.
> `hProbeList` ID3_FACE_TEMPLATE_LIST
> in Probe template list.
> `ePoolingMethod` id3FacePoolingMethod
> in Pooling method applied during the match process.
> `score` int *
> out The comparison score, in the range [0;65535].

Returns

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