vision
QrDetector.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __QR_DETECTOR_HPP__
4 #define __QR_DETECTOR_HPP__
5 
6 #include <yarp/dev/DeviceDriver.h>
7 
8 #include <opencv2/objdetect.hpp>
9 
10 #include "IDetector.hpp"
11 
12 namespace roboticslab
13 {
14 
20 class QrDetector : public yarp::dev::DeviceDriver,
21  public IDetector
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::QRCodeDetector qrcode;
29 };
30 
31 }
32 
33 #endif // __QR_DETECTOR_HPP__
Interface for object detection.
Definition: IDetector.hpp:17
Definition: QrDetector.hpp:22
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5