3DiVi Face SDK
3.24.1
|
Interface object for detecting or tracking of faces in the images or video sequences. More...
#include <Capturer.h>
Public Types | |
enum | CapturerType { CAPTURER_TYPE_FRONTAL = 0, CAPTURER_TYPE_LEFT_PROFILE = 1, CAPTURER_TYPE_RIGHT_PROFILE = 2 } |
Capturer types (see also RawSample::SampleType). More... | |
typedef LightSmartPtr < Capturer >::tPtr | Ptr |
Alias for the type of a smart pointer to Capturer. | |
Public Member Functions | |
std::vector< RawSample::Ptr > | capture (const RawImage image) |
Capture faces in a given image or video frame. More... | |
std::vector< RawSample::Ptr > | capture (const unsigned char *data, int data_size) |
Capture faces in a given image or video frame. More... | |
RawSample::Ptr | manualCapture (const RawImage image, float left_eye_x, float left_eye_y, float right_eye_x, float right_eye_y) |
Create a sample manually with the marked eye positions. More... | |
RawSample::Ptr | manualCapture (const RawImage image, const std::vector< RawSample::Point > &points) |
Create a sample manually with the marked positions of all points. Used only to adjust the position of points. More... | |
RawSample::Ptr | manualCapture (const unsigned char *data, int data_size, float left_eye_x, float left_eye_y, float right_eye_x, float right_eye_y) |
Create a sample manually with the marked eye positions. More... | |
RawSample::Ptr | manualCapture (const unsigned char *data, int data_size, const std::vector< RawSample::Point > &points) |
Create a sample manually with the marked positions of all points. Used only to adjust the position of points. More... | |
void | resetHistory () |
Forget all previous frames and faces (only affects trackers). | |
CapturerType | getType () const |
Get a capturer type. More... | |
void | setParameter (const std::string parameter, const double value) |
Change the parameter value in runtime. More... | |
Interface object for detecting or tracking of faces in the images or video sequences.
Capturer types (see also RawSample::SampleType).
|
inline |
Capture faces in a given image or video frame.
[in] | image | Image or videoframe. |
|
inline |
Capture faces in a given image or video frame.
[in] | data | Pointer to the encoded image or videoframe with 8 or 24 bits per pixel. Supported formats are JPEG, PNG, TIF and BMP. |
[in] | data_size | Data buffer size in bytes |
|
inline |
Get a capturer type.
|
inline |
Create a sample manually with the marked eye positions.
[in] | image | Image. |
[in] | left_eye_x | X coordinate of the left eye. |
[in] | left_eye_y | Y coordinate of the left eye. |
[in] | right_eye_x | X coordinate of the right eye. |
[in] | right_eye_y | Y coordinate of the right eye. |
|
inline |
Create a sample manually with the marked positions of all points. Used only to adjust the position of points.
[in] | image | Image. |
[in] | points | Vector of points. It should be of the same size and the points should be in the same order as in the vector received from RawSample::getLandmarks from the original sample. |
|
inline |
Create a sample manually with the marked eye positions.
[in] | data | Pointer to the encoded image or videoframe with 8 or 24 bits per pixel. Supported formats are JPEG, PNG, TIF and BMP. |
[in] | data_size | Data buffer size in bytes |
[in] | left_eye_x | X coordinate of the left eye. |
[in] | left_eye_y | Y coordinate of the left eye. |
[in] | right_eye_x | X coordinate of the right eye. |
[in] | right_eye_y | Y coordinate of the right eye. |
|
inline |
Create a sample manually with the marked positions of all points. Used only to adjust the position of points.
[in] | data | Pointer to the encoded image or videoframe with 8 or 24 bits per pixel. Supported formats are JPEG, PNG, TIF and BMP. |
[in] | data_size | Data buffer size in bytes |
[in] | points | Vector of points. It should be of the same size, and the points should be in the same order as in the vector received from RawSample::getLandmarks from the original sample. |
|
inline |
Change the parameter value in runtime.
[in] | parameter | Parameter name (tag name in the .xml config file). |
[in] | value | New parameter value. |