4.2.2.1. AntiSpoofingDetector

  Inherits from NSObject   Declared in STFaceProAntiSpoofingDetector.h

Overview

なりすまし防止検知クラス

Tasks

  delegate property

– createWithModelPath:

– defaultHacknessThreshold:

– detectWithInputImage:landmarks:count:

Properties

delegate

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

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

Discussion

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

Declared In

  • STFaceProAntiSpoofingDetector.h

Instance Methods

createWithModelPath:

モデルファイルをロードして、なりすまし防止検知ツールを作成します。

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

Parameters

modelPath    モデルファイルのパス

Discussion

モデルファイルをロードして、なりすまし防止検知ツールを作成します。

Declared In

  • STFaceProAntiSpoofingDetector.h

defaultHacknessThreshold:

デフォルトのなりすまし防止検知のしきい値を取得します。

- (STFaceProApiResult)defaultHacknessThreshold:(void ( ^ ) ( float ))*thresholdBlock*

Parameters

thresholdBlock    なりすまし防止検知のしきい値。detectScore < しきい値の場合は、なりすまし防止検知に合格したとみなす設定を推奨します。

Discussion

デフォルトのなりすまし防止検知のしきい値を取得します。

Declared In

  • STFaceProAntiSpoofingDetector.h

detectWithInputImage:landmarks:count:

入力画像データに対して顔のなりすまし防止検知を実行し、検知結果はプロトコルエージェントを介して返されます。

- (STFaceProApiResult)detectWithInputImage:(void *)*inputImage* landmarks:(void *)*landmarks* count:(int)*count*

Parameters

inputImage    入力画像データ

landmarks    顔特徴点情報

count    顔の数

Discussion

入力画像データに対して顔のなりすまし防止検知を実行し、検知結果はプロトコルエージェントを介して返されます。

Declared In

  • STFaceProAntiSpoofingDetector.h

最終更新