3DiVi Face SDK
3.24.2
|
Interface object that stores a captured face sample. More...
#import <RawSample.h>
Instance Methods | |
(nonnull Rectangle *) | - getRectangle |
Get a face bounding rectangle. Thread-safe. More... | |
(nonnull NSMutableArray *) | - getLandmarks |
Get anthropometric landmarks. Only frontal samples. Thread-safe. More... | |
(nonnull Point2 *) | - getLeftEye |
Get a point of the left eye. Only frontal samples. Thread-safe. More... | |
(nonnull Point2 *) | - getRightEye |
Get a point of the right eye. Only frontal samples. Thread-safe. More... | |
(nonnull Angles *) | - getAngles |
Get a face orientation. Only frontal samples. Thread-safe. More... | |
(int) | - getID |
Get a face ID. Thread-safe. More... | |
(int) | - getFrameID |
Get an ID of the frame, in which this RawSample is detected (for samples made with VideoWorker). Thread-safe. More... | |
(bool) | - hasOriginalImage |
Does the sample store the original image (true for samples made with VideoWorker with enabled store_original_frame_in_raw_sample). Thread-safe. More... | |
(SampleType) | - getType |
Get a sample type. Thread-safe. More... | |
(nonnull RawImage *) | - cutFaceRawImage |
Crop face in RawImage format (with raw pixels). Thread-safe. More... | |
(void) | - save: |
Save (serialize) the sample. Original image will not be saved (i.e. only the part of an image containing the face is saved). The format is platform-independent. Thread-safe. More... | |
(nonnull NSMutableArray *) | - getFaceCutRectangle: |
Get a cropping rectangle (for preview) that will be used in cutFaceImage. Thread-safe. More... | |
Interface object that stores a captured face sample.
- (nonnull RawImage *) cutFaceRawImage |
- (nonnull Angles *) getAngles |
Get a face orientation. Only frontal samples. Thread-safe.
- (nonnull NSMutableArray *) getFaceCutRectangle: | (FaceCutType) | cut_type |
Get a cropping rectangle (for preview) that will be used in cutFaceImage. Thread-safe.
[in] | cut_type | Face cropping types. |
- (int) getFrameID |
Get an ID of the frame, in which this RawSample is detected (for samples made with VideoWorker). Thread-safe.
- (int) getID |
Get a face ID. Thread-safe.
- (nonnull NSMutableArray *) getLandmarks |
Get anthropometric landmarks. Only frontal samples. Thread-safe.
- (nonnull Point2 *) getLeftEye |
Get a point of the left eye. Only frontal samples. Thread-safe.
- (nonnull Rectangle *) getRectangle |
Get a face bounding rectangle. Thread-safe.
- (nonnull Point2 *) getRightEye |
Get a point of the right eye. Only frontal samples. Thread-safe.
- (SampleType) getType |
Get a sample type. Thread-safe.
- (bool) hasOriginalImage |
Does the sample store the original image (true for samples made with VideoWorker with enabled store_original_frame_in_raw_sample). Thread-safe.
- (void) save: | (const char *_Nullable) | file_path |
Save (serialize) the sample. Original image will not be saved (i.e. only the part of an image containing the face is saved). The format is platform-independent. Thread-safe.
[out] | file_path |