class mrpt::detectors::CFaceDetection

Specific class for face detection.

Methods and variables labeled as experimentals are temporals (for debug or testing purposes) and may disappear in future versions.

#include <mrpt/detectors/CFaceDetection.h>

class CFaceDetection: public mrpt::detectors::CObjectDetection
{
public:
    // structs

    struct TMeasurement;
    struct TOptions;
    struct TTestsOptions;

    //
fields

    CCascadeClassifierDetection cascadeClassifier;
    struct mrpt::detectors::CFaceDetection::TOptions m_options;
    struct mrpt::detectors::CFaceDetection::TTestsOptions m_testsOptions;

    // construction

    CFaceDetection();

    //
methods

    virtual void init(const mrpt::config::CConfigFileBase& cfg);

    virtual void detectObjects_Impl(
        const mrpt::obs::CObservation& obs,
        vector_detectable_object& detected
        );

    void experimental_showMeasurements();

    void debug_returnResults(
        const std::vector<uint32_t>& falsePositives,
        const std::vector<uint32_t>& ignore,
        unsigned int& falsePositivesDeleted,
        unsigned int& realFacesDeleted
        );
};

Inherited Members

public:
    //
methods

    virtual void init(const mrpt::config::CConfigFileBase& cfg) = 0;
    void detectObjects(const mrpt::obs::CObservation::Ptr obs, vector_detectable_object& detected);
    void detectObjects(const mrpt::obs::CObservation& obs, vector_detectable_object& detected);
    void detectObjects(const mrpt::img::CImage* img, vector_detectable_object& detected);

Methods

virtual void init(const mrpt::config::CConfigFileBase& cfg)

Initialize the object with parameters loaded from the given config source.