Go to the documentation of this file.
25 #include <opencv2/core/core.hpp>
29 #include <opencv2/face.hpp>
30 #include <opencv2/highgui/highgui.hpp>
31 #include <opencv2/imgproc/imgproc.hpp>
32 #include <opencv2/objdetect/objdetect.hpp>
34 #include <Image/StereoMatcher.h>
49 defineOptionalProperty<double>(
50 "scaleFactor", 1.02,
"scale factor for the HAAR classifier");
51 defineOptionalProperty<int>(
52 "minNeighbors", 2,
"number of neighbors for the HAAR classifier");
53 defineOptionalProperty<std::string>(
"trainingDataPath",
54 "VisionX/examples/faces",
55 "folder containing the training images");
56 defineOptionalProperty<std::string>(
58 "VisionX/examples/haarcascades/haarcascade_frontalface_alt.xml",
59 "path to the HAAR classifier");
83 return "FaceRecognition";
110 memoryx::ObjectLocalizationResultList
140 cv::Ptr<cv::face::FaceRecognizer> model;
142 cv::CascadeClassifier classifier;
144 std::map<int, std::string> labels;
149 cv::Size faceImageSize;
151 CStereoMatcher* stereoMatcher;
CByteImage ** resultImages
void onExitObjectLocalizerProcessor() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
bool addObjectClass(const memoryx::EntityPtr &objectClassEntity, const memoryx::GridFileManagerPtr &fileManager) override
Add a memory entity representing the hand marker in order to set its properties.
Brief description of class FaceRecognition.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
ObjectLocalizerProcessorPropertyDefinitions(std::string prefix)
memoryx::ObjectLocalizationResultList localizeObjectClasses(const std::vector< std::string > &objectClassNames, CByteImage **cameraImages, armarx::MetaInfoSizeBasePtr imageMetaInfo, CByteImage **resultImages) override
Add a memory entity representing the hand marker in order to set its properties.
armarx::MetaInfoSizeBasePtr imageMetaInfo
void onConnectObjectLocalizerProcessor() override
FaceRecognitionPropertyDefinitions(std::string prefix)
CByteImage * cameraImages[2]
void onInitObjectLocalizerProcessor() override
std::string getDefaultName() const override
bool initRecognizer() override
Initializes segmentable recognition.
std::shared_ptr< GridFileManager > GridFileManagerPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
ObjectLocalizerProcessor.