39#ifndef __OPENCV_FACE_HPP__
40#define __OPENCV_FACE_HPP__
50#include "opencv2/core.hpp"
51#include "face/predict_collector.hpp"
54namespace cv {
namespace face {
209 CV_WRAP
virtual void train(InputArrayOfArrays src, InputArray labels) = 0;
258 CV_WRAP
virtual void update(InputArrayOfArrays src, InputArray labels);
299 CV_WRAP
void predict(InputArray src, CV_OUT
int &label, CV_OUT
double &confidence)
const;
323 CV_WRAP
virtual void write(
const String& filename)
const;
332 CV_WRAP
virtual void read(
const String& filename);
344 virtual bool empty() const CV_OVERRIDE = 0;
350 CV_WRAP virtual
void setLabelInfo(
int label, const String& strInfo);
357 CV_WRAP virtual String getLabelInfo(
int label) const;
364 CV_WRAP virtual std::vector<
int> getLabelsByString(const String& str) const;
366 virtual
double getThreshold() const = 0;
368 virtual
void setThreshold(
double val) = 0;
371 std::map<
int, String> _labelsInfo;
378#include "opencv2/face/facerec.hpp"
379#include "opencv2/face/facemark.hpp"
380#include "opencv2/face/facemark_train.hpp"
381#include "opencv2/face/facemarkLBF.hpp"
382#include "opencv2/face/facemarkAAM.hpp"
383#include "opencv2/face/face_alignment.hpp"
384#include "opencv2/face/mace.hpp"
This is a base class for all more or less complex algorithms in OpenCV
Definition: core.hpp:3091
File Storage Node class.
Definition: persistence.hpp:482
XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...
Definition: persistence.hpp:304
Abstract base class for all face recognition models
Definition: face.hpp:158
CV_WRAP_AS(predict_label) int predict(InputArray src) const
virtual void write(FileStorage &fs) const CV_OVERRIDE=0
virtual void read(const FileNode &fn) CV_OVERRIDE=0
virtual bool empty() const CV_OVERRIDE=0
CV_WRAP_AS(predict_collect) virtual void predict(InputArray src
if implemented - send all result of prediction to collector that can be used for somehow custom resul...
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74