3.2 STSilentLivenessDetector
- (instancetype)initWithDetectionModelPath:(NSString *)detectionModelPath alignmentModelPath:(NSString *)alignmentModelPath frameSelectorModelPath:(NSString *)frameSelectorModelPath antiSpoofingModelPath:(NSString *)antiSpoofingModelPath licensePath:(NSString *)licensePath setDelegate:(id <STSilentLivenessDetectorDelegate>
)delegate;
<STSilentLivenessDetectorDelegate>
)delegate;初期化メソッドです。
- (void)setImageProcessRule:(STSilentLivenessImageProcessRule *)rule;
画像トリミングの処理ルールを設定します。
- (void)setBrowOcclusionEnable:(BOOL)enable;
生体検知中に眉の遮蔽の検知を実施するかを設定します。設定しない場合、デフォルトは NO です。
- (void)setBlurryFilterEnable:(BOOL)enable threshold:(float)threshold;
生体検知中にぼやけの検知を実施するかを設定します。設定しない場合、デフォルトは NO です。閾値の既定値は1.4です。
- (void)setIlluminationFilterEnable:(BOOL)enable darkLightThreshold:(float)darkLightThreshold strongLightThreshold:(float)strongLightThreshold;
生体検知中に照明条件の検知を実施するかを設定します。設定しない場合、デフォルトは NO です。darkLightThresholdの既定値は1.899です。strongLightThresholdの既定値は4.997です。
- (void)setEyeOpenFilterEnable:(BOOL)enable threshold:(float)threshold;
生体検知中に目の開きの検知を実施するかを設定します。設定しない場合、デフォルトは NO です。閾値の既定値は0.47です。
- (void)setOcclusionEnable:(BOOL)enable;
生体検知中に顔パーツの遮蔽の検知を実施するかを設定します。設定しない場合、デフォルトは NO です。
- (void)setHackThreshold:(float)threshold;
生体検知の閾値を設定します。有効にするには、startの前に呼び出す必要があります。閾値の既定値は0.88です。
- (void)setDetectTimeout:(NSInteger)duration;
各モジュールに許可されている最大検知時間です。デフォルト値は10秒で、単位は秒です。
- (void)setFaceDistanceRateWithFarRate:(CGFloat) farRate closeRate:(CGFloat) closeRate;
顔との距離の判定条件を設定します。
- (void)setPassConditionMinDuration:(NSInteger)minDuration minFrames:(NSInteger)minFrames;
生体検知を通過するまでの条件を設定します。
- (void)inputDataWithSampleBuffer:(CMSampleBufferRef)sampleBuffer faceOrientaion:(STIDSilentLivenessFaceOrientaion)faceOrientation imagePrepareRect:(CGRect)imagePrepareRect;
生体検知の構成です。検知待ちの画像を入力します。
- (void)start;
検知を開始します。
- (void)stop;
検知を停止します。
- (BOOL)isBrowOcclusionEnable;
眉の遮蔽検知スイッチの状態を取得します。
- (BOOL)isBlurryFilterEnable;
ぼやけ検知スイッチの状態を取得します。
- (BOOL)isIlluminationFilterEnable;
照明条件検知スイッチの状態を取得します。
- (BOOL)isEyeOpenFilterEnable;
目の開き検知スイッチの状態を取得します。
- (BOOL)isOcclusionEnable;
顔パーツの遮蔽検知スイッチの状態を取得します。
- (CGFloat)hackThreshold;
生体検知の閾値をを取得します。閾値を超えた場合は、生体と判断し、閾値未満の場合は、検出が失敗したことを表示します。
- (NSInteger)detectTimeout;
タイムアウト時間を取得します。
- (NSInteger)passMinDuration;
生体検知を通過するまでの最短時間を取得します。
- (NSInteger)passMinFrames;
生体検知を通過するまでの最小フレーム数を取得します。
- (CGFloat)faceFarRate;
判定条件における最も遠い顔の距離のしきい値を取得します。
- (CGFloat)faceCloseRate;
判定条件における最も近い顔の距離のしきい値を取得します。
+ (NSString*)sdkVersion;
SDK のバージョンを取得します。
+ (NSString*)libraryVersion;
基礎となるライブラリのバージョンを取得します。
最終更新