3 #ifndef __DNN_DETECTOR_HPP__
4 #define __DNN_DETECTOR_HPP__
6 #include <yarp/dev/DeviceDriver.h>
8 #include <opencv2/dnn.hpp>
10 #include "IDetector.hpp"
24 bool open(yarp::os::Searchable & config)
override;
25 bool detect(
const yarp::sig::Image & inYarpImg, yarp::os::Bottle & detectedObjects)
override;
29 std::vector<std::string> classes;
30 std::vector<std::string> outNames;
37 void preprocess(
const cv::Mat & frame);
38 void postprocess(
const cv::Size & size,
const std::vector<cv::Mat> & outs, yarp::os::Bottle & detectedObjects);
Definition: DnnDetector.hpp:22
Interface for object detection.
Definition: IDetector.hpp:17
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5