OpenCV453
facemark.hpp
1// This file is part of OpenCV project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://opencv.org/license.html.
4
5/*
6This file was part of GSoC Project: Facemark API for OpenCV
7Final report: https://gist.github.com/kurnianggoro/74de9121e122ad0bd825176751d47ecc
8Student: Laksono Kurnianggoro
9Mentor: Delia Passalacqua
10*/
11
12#ifndef __OPENCV_FACELANDMARK_HPP__
13#define __OPENCV_FACELANDMARK_HPP__
14
21#include "opencv2/core.hpp"
22#include <vector>
23
24
25namespace cv {
26namespace face {
27
28
47class CV_EXPORTS_W Facemark : public virtual Algorithm
48{
49public:
50
59 CV_WRAP virtual void loadModel( String model ) = 0;
60 // virtual void saveModel(String fs)=0;
61
76 CV_WRAP virtual bool fit( InputArray image,
77 InputArray faces,
78 OutputArrayOfArrays landmarks) = 0;
79}; /* Facemark*/
80
81
83CV_EXPORTS_W Ptr<Facemark> createFacemarkAAM();
84
86CV_EXPORTS_W Ptr<Facemark> createFacemarkLBF();
87
89CV_EXPORTS_W Ptr<Facemark> createFacemarkKazemi();
90
91
92} // face
93} // cv
94
95#endif //__OPENCV_FACELANDMARK_HPP__
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
This is a base class for all more or less complex algorithms in OpenCV
Definition: core.hpp:3091
Abstract base class for all facemark models
Definition: facemark.hpp:48
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74