Inherits from NSObject
Declared in STFaceProFeatureComparison.h
顔特徴の比較クラス
delegate property
– createWithModelPath:
– compareWithFeature:anotherFeature:scoreBlock:
– compareWithQueryFeature:featureList:featureCount:maxNum:
プロトコルプロキシオブジェクト
@property (nonatomic, weak) id<STFaceProFeatureComparisonDelegate> delegate
プロトコルプロキシオブジェクト
STFaceProFeatureComparison.h
Instance Methods
compareWithFeature:anotherFeature:scoreBlock:
1:1顔比較を行います。2つの顔の特徴を比較し、ブロックを通して顔の類似度を返します。
- (STFaceProApiResult)compareWithFeature:(char *)*feature* anotherFeature:(char *)*anotherFeature* scoreBlock:(void ( ^ ) ( float ))*scoreBlock*
feature
1つ目の顔特徴情報。
anotherFeature
2つ目の顔特徴情報。
scoreBlock
類似度。値が高いほど類似度が高くなります。
1:1顔比較を行います。2つの顔の特徴を比較し、ブロックを通して顔の類似度を返します。
STFaceProFeatureComparison.h
compareWithQueryFeature:featureList:featureCount:maxNum:
1:N顔比較を行います。顔特徴の配列セットから検索し、プロトコルプロキシを通して特徴比較結果を返します。
- (STFaceProApiResult)compareWithQueryFeature:(char *)*queryFeature* featureList:(char *_Nonnull const *_Nonnull)*featureList* featureCount:(int)*featureCount* maxNum:(int)*maxNum*
queryFeature
検索対象の顔特徴情報
featureList
顔特徴情報の配列
featureCount
顔特徴情報の量
maxNum
顔検索の最大数
1:N顔比較を行います。顔特徴の配列セットから検索し、プロトコルプロキシを通して特徴比較結果を返します。
STFaceProFeatureComparison.h
createWithModelPath:
モデルファイルをロードして、顔特徴比較ツールを作成します。
- (STFaceProApiResult)createWithModelPath:(NSString *)*modelPath*
modelPath
モデルファイルのパス
モデルファイルをロードして、顔特徴比較ツールを作成します。
STFaceProFeatureComparison.h