|
Enrollment 28.2.0
|
Represents a face cropped from the original face capture. More...
#include <Face.h>
Public Member Functions | |
| std::shared_ptr< FaceCapture > | GetFaceCapture () const |
| Retrieves the face capture from the cropped region. | |
| Rectangle | GetCropRectangle () const |
| Gets the crop region of the face within the image. | |
| bool | IsCropRegionInsideImage () const |
| Checks if the crop region is entirely inside the image. | |
| std::shared_ptr< Image > | FaceAreaMask () const |
| Creates an image representing the mask of the detected face in the original FaceCapture, considering the applied FaceCropConfiguration. | |
| std::shared_ptr< Image > | FaceAreaSegment (const RGB &color) const |
| Creates an image of the detected face in the original FaceCapture, with the surrounding area replaced by a given color, considering the applied FaceCropConfiguration. | |
| std::shared_ptr< Image > | FaceAreaSegment () const |
| Creates an image of the detected face in the original FaceCapture, with a transparent surrounding area, considering the applied FaceCropConfiguration. | |
Friends | |
| class | Face |
Represents a face cropped from the original face capture.
|
inlinenodiscard |
Creates an image representing the mask of the detected face in the original FaceCapture, considering the applied FaceCropConfiguration.
Each pixel that belongs to face has white color, the surrounding has black color.
| EnrollmentException | when it is not possible to get mask |
Total size of solvers is 52 MB.
References face-segmentation-mask.solver
References Image::DecodeRawImage(), FULL_NOT_ALIGNED, and RawImage::GRAYSCALE.
|
inlinenodiscard |
Creates an image of the detected face in the original FaceCapture, with a transparent surrounding area, considering the applied FaceCropConfiguration.
| EnrollmentException | when it is not possible to get segmented face area |
Total size of solvers is 52 MB.
References face-segmentation-mask.solver
References RawImage::BGRA, Image::DecodeRawImage(), and FULL_NOT_ALIGNED.
Creates an image of the detected face in the original FaceCapture, with the surrounding area replaced by a given color, considering the applied FaceCropConfiguration.
| color | surrounding RGB |
| EnrollmentException | when it is not possible to get segmented face area |
Total size of solvers is 52 MB.
References face-segmentation-mask.solver
References RawImage::BGR, RGB::blue, Image::DecodeRawImage(), FULL_NOT_ALIGNED, RGB::green, and RGB::red.
|
inlinenodiscard |
Gets the crop region of the face within the image.
Referenced by GetFaceCapture(), and IsCropRegionInsideImage().
|
inlinenodiscard |
Retrieves the face capture from the cropped region.
References BASIC, RawImage::BGR, FaceCapture::Create(), Image::DecodeRawImage(), FULL, FULL_FRONTAL, FULL_NOT_ALIGNED, GetCropRectangle(), TOKEN, and TOKEN_FRONTAL.
|
inlinenodiscard |
Checks if the crop region is entirely inside the image.
References GetCropRectangle().