//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.face;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.Algorithm;
import org.opencv.core.Mat;
import org.opencv.core.MatOfPoint2f;
import org.opencv.core.MatOfRect;
import org.opencv.utils.Converters;
// C++: class Facemark
/**
* Abstract base class for all facemark models
*
* To utilize this API in your program, please take a look at the REF: tutorial_table_of_content_facemark
* ### Description
*
* Facemark is a base class which provides universal access to any specific facemark algorithm.
* Therefore, the users should declare a desired algorithm before they can use it in their application.
*
* Here is an example on how to declare a facemark algorithm:
*
* // Using Facemark in your code:
* Ptr<Facemark> facemark = createFacemarkLBF();
*
*
* The typical pipeline for facemark detection is as follows:
*
* facemark->loadModel("../data/lbf.model");
*
*/
public void loadModel(String model) {
loadModel_0(nativeObj, model);
}
//
// C++: bool cv::face::Facemark::fit(Mat image, vector_Rect faces, vector_vector_Point2f& landmarks)
//
/**
* Detect facial landmarks from an image.
* @param image Input image.
* @param faces Output of the function which represent region of interest of the detected faces.
* Each face is stored in cv::Rect container.
* @param landmarks The detected landmark points for each faces.
*
* <B>Example of usage</B>
*
* Mat image = imread("image.jpg");
* std::vector<Rect> faces;
* std::vector<std::vector<Point2f> > landmarks;
* facemark->fit(image, faces, landmarks);
*
* @return automatically generated
*/
public boolean fit(Mat image, MatOfRect faces, List