Face Engine SDK
5.23.1
A face detection, recognition and tracking engine.
|
Face detection area warper interface. More...
#include <IWarper.h>
Public Member Functions | |
virtual Transformation | createTransformation (const Detection &detection, const Landmarks5 &landmarks) const noexcept=0 |
Create transformation data struct. | |
virtual Result< FSDKError > | warp (const Image &image, const Transformation &transformation, Image &transformedImage) const noexcept=0 |
Warp image. | |
virtual Result< FSDKError > | warp (Span< const Image > images, Span< const Transformation > transformations, Span< Image > transformedImages) const noexcept=0 |
Warp faces on multiple images. | |
virtual Result< FSDKError > | warp (const Landmarks5 &landmarks, const Transformation &transformation, Landmarks5 &transformedLandmarks) const noexcept=0 |
Warp landmarks of size 5. | |
virtual Result< FSDKError > | warp (const Landmarks68 &landmarks68, const Transformation &transformation, Landmarks68 &transformedLandmarks68) const noexcept=0 |
Warp landmarks of size 68. | |
virtual Result< FSDKError > | unwarp (const EyesEstimation &eyesEstimationInWarpCoordinates, const Transformation &transformation, EyesEstimation &eyesEstimation) const noexcept=0 |
Warp irisLandmarks in EyesEstimation struct for both eyes. | |
virtual Result< FSDKError > | unwarp (const Landmarks5 &warpedLandmarks5, const Transformation &transformation, Landmarks5 &landmarks5) const noexcept=0 |
Warp landmarks of size 5 back to source image coordinates. | |
virtual Result< FSDKError > | unwarp (const Landmarks68 &warpedLandmarks68, const Transformation &transformation, Landmarks68 &landmarks68) const noexcept=0 |
Warp landmarks of size 68 back to source image coordinates. | |
virtual Result< FSDKError > | unwarp (const GazeEstimation &warpedAngles, const Transformation &transformation, GazeEstimation &angles) const noexcept=0 |
virtual ImageBatchFuture | warpAsync (Span< const Image > images, Span< const Transformation > transformations) const =0 |
Asynchronously warp faces on multiple images. |
Face detection area warper interface.
Perform affine transformations on an image to properly align depicted face for descriptor extraction.
virtual Transformation fsdk::IWarper::createTransformation | ( | const Detection & | detection, |
const Landmarks5 & | landmarks | ||
) | const [pure virtual] |
Create transformation data struct.
[in] | detection | detection coordinates in image space. |
[in] | landmarks | vector of landmarks to calculate warping angles. |
virtual Result<FSDKError> fsdk::IWarper::unwarp | ( | const EyesEstimation & | eyesEstimationInWarpCoordinates, |
const Transformation & | transformation, | ||
EyesEstimation & | eyesEstimation | ||
) | const [pure virtual] |
Warp irisLandmarks in EyesEstimation struct for both eyes.
Warps from warped image coord. space to source image coordinates space, the one that was used to create transformation.
[in] | eyesEstimationInWarpCoordinates | EyesEstimation straight out of EyeEstimator. Should be create from warpedImage, that was created with the same transformation object as the one passed. |
[in] | transformation | transformation data. |
[out] | eyesEstimation | eyes estimation with iris landmarks warped to source image coordinates space. |
virtual Result<FSDKError> fsdk::IWarper::unwarp | ( | const Landmarks5 & | warpedLandmarks5, |
const Transformation & | transformation, | ||
Landmarks5 & | landmarks5 | ||
) | const [pure virtual] |
Warp landmarks of size 5 back to source image coordinates.
[in] | warpedLandmarks5 | warped landmarks array of size 5. |
[in] | transformation | transformation data. |
[out] | landmarks5 | landmarks of size 5 warped back to source image coordinates. |
virtual Result<FSDKError> fsdk::IWarper::unwarp | ( | const Landmarks68 & | warpedLandmarks68, |
const Transformation & | transformation, | ||
Landmarks68 & | landmarks68 | ||
) | const [pure virtual] |
Warp landmarks of size 68 back to source image coordinates.
[in] | warpedLandmarks5 | warped landmarks array of size 68. |
[in] | transformation | transformation data. |
[out] | landmarks5 | landmarks of size 68 warped back to source image coordinates. |
virtual Result<FSDKError> fsdk::IWarper::warp | ( | const Image & | image, |
const Transformation & | transformation, | ||
Image & | transformedImage | ||
) | const [pure virtual] |
virtual Result<FSDKError> fsdk::IWarper::warp | ( | Span< const Image > | images, |
Span< const Transformation > | transformations, | ||
Span< Image > | transformedImages | ||
) | const [pure virtual] |
Warp faces on multiple images.
[in] | images | span of source images. |
[in] | transformations | span of transformation structures. |
[in/out] | transformedImages span of output warped images. |
virtual Result<FSDKError> fsdk::IWarper::warp | ( | const Landmarks5 & | landmarks, |
const Transformation & | transformation, | ||
Landmarks5 & | transformedLandmarks | ||
) | const [pure virtual] |
Warp landmarks of size 5.
[in] | landmarks | landmarks array of size 5 |
[in] | transformation | transformation data. |
[out] | transformedLandmarks | output transformed landmarks. If transformation is created with detection, it's in the coordinates of transformed warped image, otherwise in the coordinates of detection. |
virtual Result<FSDKError> fsdk::IWarper::warp | ( | const Landmarks68 & | landmarks68, |
const Transformation & | transformation, | ||
Landmarks68 & | transformedLandmarks68 | ||
) | const [pure virtual] |
Warp landmarks of size 68.
[in] | landmarks68 | landmarks to warp. |
[in] | transformation | transformation data. |
[out] | transformedLandmarks68 | output transformed landmarks of size 68. If transformation is created with detection, it's in the coordinates of transformed warped image, otherwise in the coordinates of detection. |
virtual ImageBatchFuture fsdk::IWarper::warpAsync | ( | Span< const Image > | images, |
Span< const Transformation > | transformations | ||
) | const [pure virtual] |
Asynchronously warp faces on multiple images.
[in] | images | span of source images. |
[in] | transformations | span of transformation structures. |