Face Engine SDK  5.3.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fsdk::IHeadAndShouldersLivenessEstimator Struct Referenceabstract

Head And Shoulders estimator interface. More...

#include <IHeadAndShouldersLivenessEstimator.h>

Inheritance diagram for fsdk::IHeadAndShouldersLivenessEstimator:
fsdk::IRefCounted

Public Member Functions

virtual ResultValue< FSDKError,
float > 
estimateHeadLiveness (const Image &image, const Detection &detection) const noexcept=0
 Estimate the head liveness. More...
 
virtual ResultValue< FSDKError,
float > 
estimateShouldersLiveness (const Image &image, const Detection &detection) const noexcept=0
 Estimate the shoulders liveness. More...
 
- Public Member Functions inherited from fsdk::IRefCounted
virtual int32_t retain () noexcept=0
 Increase strong reference count. More...
 
virtual int32_t release () noexcept=0
 Decrease strong reference count. More...
 
virtual int32_t getRefCount () const noexcept=0
 Get actual strong reference count. More...
 
virtual int32_t retainWeak () noexcept=0
 Increase weak reference count. More...
 
virtual int32_t releaseWeak () noexcept=0
 Decrease weak reference count. More...
 
virtual int32_t getWeakRefCount () const noexcept=0
 Get actual weak reference count. More...
 

Detailed Description

Head And Shoulders estimator interface.

Note
This estimator is designed to work with Image and detection;

Member Function Documentation

virtual ResultValue<FSDKError, float> fsdk::IHeadAndShouldersLivenessEstimator::estimateHeadLiveness ( const Image image,
const Detection detection 
) const
pure virtualnoexcept

Estimate the head liveness.

Search for rect around head.

Parameters
[in]imagesource image in R8G8B8 format.
[in]detectiondetection coords in image space.
Returns
ResultValue with error code and score of estimation. Score normalized in range [0..1], 1 - is real person, 0 - is fake.
virtual ResultValue<FSDKError, float> fsdk::IHeadAndShouldersLivenessEstimator::estimateShouldersLiveness ( const Image image,
const Detection detection 
) const
pure virtualnoexcept

Estimate the shoulders liveness.

Compare the position of body with position of head.

Parameters
[in]imagesource image in R8G8B8 format.
[in]detectiondetection coords in image space.
Returns
ResultValue with error code and score of estimation. Score normalized in range [0..1], 1 - is real person, 0 - is fake.

The documentation for this struct was generated from the following file: