vision
Loading...
Searching...
No Matches
libraries
YarpPlugins
ArucoDetector
ArucoDetector.hpp
1
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
#ifndef __ARUCO_DETECTOR_HPP__
4
#define __ARUCO_DETECTOR_HPP__
5
6
#include <yarp/dev/DeviceDriver.h>
7
8
#include <opencv2/objdetect/aruco_detector.hpp>
9
10
#include "IDetector.hpp"
11
#include "ArucoDetector_ParamsParser.h"
12
19
class
ArucoDetector
:
public
yarp::dev::DeviceDriver,
20
public
roboticslab::IDetector
,
21
public
ArucoDetector_ParamsParser
22
{
23
public
:
24
bool
open(yarp::os::Searchable& config)
override
;
25
bool
detect(
const
yarp::sig::Image& inYarpImg, yarp::os::Bottle& detectedObjects)
override
;
26
27
private
:
28
cv::aruco::DetectorParameters detectorParams;
29
cv::aruco::Dictionary dictionary;
30
};
31
32
#endif
// __ARUCO_DETECTOR_HPP__
ArucoDetector_ParamsParser
Definition
ArucoDetector_ParamsParser.h:42
ArucoDetector
Definition
ArucoDetector.hpp:22
roboticslab::IDetector
Interface for object detection.
Definition
IDetector.hpp:17
Generated by
1.9.8