Face Engine SDK 5.25.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
fsdk::IDepthLivenessEstimator Struct Referenceabstract

Depth estimator interface. More...

#include <IDepthLivenessEstimator.h>

Inheritance diagram for fsdk::IDepthLivenessEstimator:
fsdk::IRefCounted

Public Member Functions

virtual Result< FSDKErrorestimate (const Image &depth, DepthLivenessEstimation &out) const noexcept=0
 Check whether or not depth map corresponds to the real person.
 
virtual Result< FSDKErrorestimate (Span< const Image > depths, Span< DepthLivenessEstimation > outs) const noexcept=0
 Check whether several depth maps correspond to real persons.
 
virtual Result< FSDKErrorvalidate (Span< const Image > depths, Span< Result< FSDKError > > errors) const noexcept=0
 Validates input of multiple depth maps of face warps in a single function call.
 
- Public Member Functions inherited from fsdk::IRefCounted
virtual int32_t retain () noexcept=0
 Increase strong reference count.
 
virtual int32_t retainLocked () noexcept=0
 Increase strong reference count thread safely.
 
virtual int32_t release () noexcept=0
 Decrease strong reference count.
 
virtual int32_t getRefCount () const noexcept=0
 Get actual strong reference count.
 
virtual int32_t retainWeak () noexcept=0
 Increase weak reference count.
 
virtual int32_t releaseWeak () noexcept=0
 Decrease weak reference count.
 
virtual int32_t getWeakRefCount () const noexcept=0
 Get actual weak reference count.
 

Detailed Description

Depth estimator interface.

Note
This estimator is designed for face analysis using depth map. It works with 16 bit depth map of face warp.

Member Function Documentation

◆ estimate() [1/2]

virtual Result< FSDKError > fsdk::IDepthLivenessEstimator::estimate ( const Image & depth,
DepthLivenessEstimation & out ) const
pure virtualnoexcept

Check whether or not depth map corresponds to the real person.

Parameters
[in]depthdepth image with warped face.
[out]outDepthEstimation output structure.
Returns
Result with error code.
See also
DepthLivenessEstimation, Image, Result and FSDKError for details.
Note
depth warp format must be R16,
See also
Format.

◆ estimate() [2/2]

virtual Result< FSDKError > fsdk::IDepthLivenessEstimator::estimate ( Span< const Image > depths,
Span< DepthLivenessEstimation > outs ) const
pure virtualnoexcept

Check whether several depth maps correspond to real persons.

Parameters
[in]depthsdepth images with warped faces.
[out]outsliveness estimations.
Returns
Result with error code.
See also
DepthLivenessEstimation, Image, Result and FSDKError for details.
Note
depth warp format must be R16,
See also
Format.
Note
all spans should be based on user owned continuous collections.
all spans should be equal size.

◆ validate()

virtual Result< FSDKError > fsdk::IDepthLivenessEstimator::validate ( Span< const Image > depths,
Span< Result< FSDKError > > errors ) const
pure virtualnoexcept

Validates input of multiple depth maps of face warps in a single function call.

Parameters
[in]depthssource Depth images span
[out]errorsoutput span of errors for each image.
Returns
validation result for the first failed image or FSDKError::Ok
See also
Image, Span, Result and FSDKError for details.
Note
depth images format must be Format::R16,
See also
Format.
Note
all spans should be based on user owned continuous collections.
all spans should be equal size.

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