vision
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 
12 namespace roboticslab
13 {
14 
21 class ArucoDetector : public yarp::dev::DeviceDriver,
22  public IDetector
23 {
24 public:
25  bool open(yarp::os::Searchable& config) override;
26  bool detect(const yarp::sig::Image& inYarpImg, yarp::os::Bottle& detectedObjects) override;
27 
28 private:
29  cv::aruco::DetectorParameters detectorParams;
30  cv::aruco::Dictionary dictionary;
31 };
32 
33 }
34 
35 #endif // __ARUCO_DETECTOR_HPP__
Definition: ArucoDetector.hpp:23
Interface for object detection.
Definition: IDetector.hpp:17
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5