vision
Loading...
Searching...
No Matches
libraries
YarpPlugins
HaarDetector
HaarDetector.hpp
1
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
#ifndef __HAAR_DETECTOR_HPP__
4
#define __HAAR_DETECTOR_HPP__
5
6
#include <yarp/dev/DeviceDriver.h>
7
8
#include <opencv2/objdetect.hpp>
9
#ifdef HAVE_CV_FACE
10
# include <opencv2/face/facemark.hpp>
11
#endif
12
13
#include "IDetector.hpp"
14
#include "HaarDetector_ParamsParser.h"
15
21
class
HaarDetector
:
public
yarp::dev::DeviceDriver,
22
public
roboticslab::IDetector
,
23
public
HaarDetector_ParamsParser
24
{
25
public
:
26
bool
open(yarp::os::Searchable& config)
override
;
27
bool
detect(
const
yarp::sig::Image& inYarpImg, yarp::os::Bottle& detectedObjects)
override
;
28
29
private
:
30
cv::CascadeClassifier object_cascade;
31
#ifdef HAVE_CV_FACE
32
cv::Ptr<cv::face::Facemark> facemark;
33
#endif
34
};
35
36
#endif
// __HAAR_DETECTOR_HPP__
HaarDetector_ParamsParser
Definition
HaarDetector_ParamsParser.h:43
HaarDetector
Definition
HaarDetector.hpp:24
roboticslab::IDetector
Interface for object detection.
Definition
IDetector.hpp:17
Generated by
1.9.8