4.2.2.11. FeatureComparison

  Inherits from NSObject   Declared in STFaceProFeatureComparison.h

Overview

顔特徴の比較クラス

Tasks

  delegate property

– createWithModelPath:

– compareWithFeature:anotherFeature:scoreBlock:

– compareWithQueryFeature:featureList:featureCount:maxNum:

Properties

delegate

プロトコルプロキシオブジェクト

@property (nonatomic, weak) id<STFaceProFeatureComparisonDelegate> delegate

Discussion

プロトコルプロキシオブジェクト

Declared In

  • STFaceProFeatureComparison.h

Instance Methods

compareWithFeature:anotherFeature:scoreBlock:

1:1顔比較を行います。2つの顔の特徴を比較し、ブロックを通して顔の類似度を返します。

- (STFaceProApiResult)compareWithFeature:(char *)*feature* anotherFeature:(char *)*anotherFeature* scoreBlock:(void ( ^ ) ( float ))*scoreBlock*

Parameters

feature    1つ目の顔特徴情報。

anotherFeature    2つ目の顔特徴情報。

scoreBlock    類似度。値が高いほど類似度が高くなります。

Discussion

1:1顔比較を行います。2つの顔の特徴を比較し、ブロックを通して顔の類似度を返します。

Declared In

  • STFaceProFeatureComparison.h

compareWithQueryFeature:featureList:featureCount:maxNum:

1:N顔比較を行います。顔特徴の配列セットから検索し、プロトコルプロキシを通して特徴比較結果を返します。

- (STFaceProApiResult)compareWithQueryFeature:(char *)*queryFeature* featureList:(char *_Nonnull const *_Nonnull)*featureList* featureCount:(int)*featureCount* maxNum:(int)*maxNum*

Parameters

queryFeature    検索対象の顔特徴情報

featureList    顔特徴情報の配列

featureCount    顔特徴情報の量

maxNum    顔検索の最大数

Discussion

1:N顔比較を行います。顔特徴の配列セットから検索し、プロトコルプロキシを通して特徴比較結果を返します。

Declared In

  • STFaceProFeatureComparison.h

createWithModelPath:

モデルファイルをロードして、顔特徴比較ツールを作成します。

- (STFaceProApiResult)createWithModelPath:(NSString *)*modelPath*

Parameters

modelPath    モデルファイルのパス

Discussion

モデルファイルをロードして、顔特徴比較ツールを作成します。

Declared In

  • STFaceProFeatureComparison.h

最終更新