OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
Static Public Member Functions | |
static Facemark | createFacemarkAAM () |
static Facemark | createFacemarkKazemi () |
static Facemark | createFacemarkLBF () |
static void | drawFacemarks (Mat image, Mat points) |
Utility to draw the detected facial landmark points. | |
static void | drawFacemarks (Mat image, Mat points, in Vec4d color) |
Utility to draw the detected facial landmark points. | |
static void | drawFacemarks (Mat image, Mat points, in(double v0, double v1, double v2, double v3) color) |
Utility to draw the detected facial landmark points. | |
static void | drawFacemarks (Mat image, Mat points, Scalar color) |
Utility to draw the detected facial landmark points. | |
static bool | getFacesHAAR (Mat image, Mat faces, string face_cascade_name) |
Default face detector This function is mainly utilized by the implementation of a Facemark Algorithm. End users are advised to use function Facemark::getFaces which can be manually defined and circumvented to the algorithm by Facemark::setFaceDetector. | |
static bool | loadDatasetList (string imageList, string annotationList, List< string > images, List< string > annotations) |
A utility to load list of paths to training image and annotation file. | |
static bool | loadFacePoints (string filename, Mat points) |
A utility to load facial landmark information from a given file. | |
static bool | loadFacePoints (string filename, Mat points, float offset) |
A utility to load facial landmark information from a given file. | |
static bool | loadTrainingData (List< string > filename, List< MatOfPoint2f > trainlandmarks, List< string > trainimages) |
This function extracts the data for training from .txt files which contains the corresponding image name and landmarks. The first file in each file should give the path of the image whose landmarks are being described in the file. Then in the subsequent lines there should be coordinates of the landmarks in the image i.e each line should be of the form x,y where x represents the x coordinate of the landmark and y represents the y coordinate of the landmark. | |
static bool | loadTrainingData (string filename, List< string > images, Mat facePoints) |
A utility to load facial landmark dataset from a single file. | |
static bool | loadTrainingData (string filename, List< string > images, Mat facePoints, char delim) |
A utility to load facial landmark dataset from a single file. | |
static bool | loadTrainingData (string filename, List< string > images, Mat facePoints, char delim, float offset) |
A utility to load facial landmark dataset from a single file. | |
static bool | loadTrainingData (string imageList, string groundTruth, List< string > images, Mat facePoints) |
A utility to load facial landmark information from the dataset. | |
static bool | loadTrainingData (string imageList, string groundTruth, List< string > images, Mat facePoints, float offset) |
A utility to load facial landmark information from the dataset. | |
|
static |
|
static |
|
static |
Utility to draw the detected facial landmark points.
image | The input image to be processed. |
points | Contains the data of points which will be drawn. |
color | The color of points in BGR format represented by cv::Scalar. |
<B>Example of usage</B>
|
static |
Utility to draw the detected facial landmark points.
image | The input image to be processed. |
points | Contains the data of points which will be drawn. |
color | The color of points in BGR format represented by cv::Scalar. |
<B>Example of usage</B>
|
static |
Utility to draw the detected facial landmark points.
image | The input image to be processed. |
points | Contains the data of points which will be drawn. |
color | The color of points in BGR format represented by cv::Scalar. |
<B>Example of usage</B>
|
static |
Utility to draw the detected facial landmark points.
image | The input image to be processed. |
points | Contains the data of points which will be drawn. |
color | The color of points in BGR format represented by cv::Scalar. |
<B>Example of usage</B>
|
static |
Default face detector This function is mainly utilized by the implementation of a Facemark Algorithm. End users are advised to use function Facemark::getFaces which can be manually defined and circumvented to the algorithm by Facemark::setFaceDetector.
image | The input image to be processed. |
faces | Output of the function which represent region of interest of the detected faces. Each face is stored in cv::Rect container. |
params | detector parameters |
<B>Example of usage</B>
|
static |
A utility to load list of paths to training image and annotation file.
imageList | The specified file contains paths to the training images. |
annotationList | The specified file contains paths to the training annotations. |
images | The loaded paths of training images. |
annotations | The loaded paths of annotation files. |
Example of usage:
|
static |
A utility to load facial landmark information from a given file.
filename | The filename of file contains the facial landmarks data. |
points | The loaded facial landmark points. |
offset | An offset value to adjust the loaded points. |
<B>Example of usage</B>
The annotation file should follow the default format which is
where n_points is the number of points considered and each point is represented as its position in x and y.
|
static |
A utility to load facial landmark information from a given file.
filename | The filename of file contains the facial landmarks data. |
points | The loaded facial landmark points. |
offset | An offset value to adjust the loaded points. |
<B>Example of usage</B>
The annotation file should follow the default format which is
where n_points is the number of points considered and each point is represented as its position in x and y.
|
static |
This function extracts the data for training from .txt files which contains the corresponding image name and landmarks. The first file in each file should give the path of the image whose landmarks are being described in the file. Then in the subsequent lines there should be coordinates of the landmarks in the image i.e each line should be of the form x,y where x represents the x coordinate of the landmark and y represents the y coordinate of the landmark.
For reference you can see the files as provided in the <a href="http://www.ifp.illinois.edu/~vuongle2/helen/">HELEN dataset</a>
filename | A vector of type cv::String containing name of the .txt files. |
trainlandmarks | A vector of type cv::Point2f that would store shape or landmarks of all images. |
trainimages | A vector of type cv::String which stores the name of images whose landmarks are tracked |
|
static |
A utility to load facial landmark dataset from a single file.
filename | The filename of a file that contains the dataset information. Each line contains the filename of an image followed by pairs of x and y values of facial landmarks points separated by a space. Example |
images | A vector where each element represent the filename of image in the dataset. Images are not loaded by default to save the memory. |
facePoints | The loaded landmark points for all training data. |
delim | Delimiter between each element, the default value is a whitespace. |
offset | An offset value to adjust the loaded points. |
<B>Example of usage</B>
|
static |
A utility to load facial landmark dataset from a single file.
filename | The filename of a file that contains the dataset information. Each line contains the filename of an image followed by pairs of x and y values of facial landmarks points separated by a space. Example |
images | A vector where each element represent the filename of image in the dataset. Images are not loaded by default to save the memory. |
facePoints | The loaded landmark points for all training data. |
delim | Delimiter between each element, the default value is a whitespace. |
offset | An offset value to adjust the loaded points. |
<B>Example of usage</B>
|
static |
A utility to load facial landmark dataset from a single file.
filename | The filename of a file that contains the dataset information. Each line contains the filename of an image followed by pairs of x and y values of facial landmarks points separated by a space. Example |
images | A vector where each element represent the filename of image in the dataset. Images are not loaded by default to save the memory. |
facePoints | The loaded landmark points for all training data. |
delim | Delimiter between each element, the default value is a whitespace. |
offset | An offset value to adjust the loaded points. |
<B>Example of usage</B>
|
static |
A utility to load facial landmark information from the dataset.
imageList | A file contains the list of image filenames in the training dataset. |
groundTruth | A file contains the list of filenames where the landmarks points information are stored. The content in each file should follow the standard format (see face::loadFacePoints). |
images | A vector where each element represent the filename of image in the dataset. Images are not loaded by default to save the memory. |
facePoints | The loaded landmark points for all training data. |
offset | An offset value to adjust the loaded points. |
<B>Example of usage</B>
example of content in the images_train.txt
example of content in the points_train.txt
|
static |
A utility to load facial landmark information from the dataset.
imageList | A file contains the list of image filenames in the training dataset. |
groundTruth | A file contains the list of filenames where the landmarks points information are stored. The content in each file should follow the standard format (see face::loadFacePoints). |
images | A vector where each element represent the filename of image in the dataset. Images are not loaded by default to save the memory. |
facePoints | The loaded landmark points for all training data. |
offset | An offset value to adjust the loaded points. |
<B>Example of usage</B>
example of content in the images_train.txt
example of content in the points_train.txt