Go to the documentation of this file.
27 #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>
50 defineOptionalProperty<double>(
"scaleFactor", 1.02,
"scale factor for the HAAR classifier");
51 defineOptionalProperty<int>(
"minNeighbors", 2,
"number of neighbors for the HAAR classifier");
52 defineOptionalProperty<std::string>(
"trainingDataPath",
"VisionX/examples/faces",
"folder containing the training images");
53 defineOptionalProperty<std::string>(
"classifierFileName",
"VisionX/examples/haarcascades/haarcascade_frontalface_alt.xml",
"path to the HAAR classifier");
77 return "FaceRecognition";
131 cv::Ptr<cv::face::FaceRecognizer> model;
133 cv::CascadeClassifier classifier;
135 std::map<int, std::string> labels;
140 cv::Size faceImageSize;
142 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.