34 #ifndef VP_DETECTOR_BASE_H
35 #define VP_DETECTOR_BASE_H
42 #include <visp3/core/vpImage.h>
43 #include <visp3/core/vpImagePoint.h>
44 #include <visp3/core/vpRect.h>
88 vpRect getBBox(
size_t i)
const;
98 std::vector<std::string> &
getMessage() {
return m_message; }
103 std::string &getMessage(
size_t i);
113 std::vector<std::vector<vpImagePoint> > &
getPolygon() {
return m_polygon; }
118 std::vector<vpImagePoint> &getPolygon(
size_t i);
123 inline void setTimeout(
unsigned long timeout_ms) { m_timeout_ms = timeout_ms; }
std::vector< std::vector< vpImagePoint > > & getPolygon()
std::vector< std::string > m_message
Message attached to each object.
std::vector< std::vector< vpImagePoint > > m_polygon
For each object, defines the polygon that contains the object.
void setTimeout(unsigned long timeout_ms)
size_t m_nb_objects
Number of detected objects.
unsigned long m_timeout_ms
Detection timeout.
size_t getNbObjects() const
virtual ~vpDetectorBase()
std::vector< std::string > & getMessage()
virtual bool detect(const vpImage< unsigned char > &I)=0
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Defines a rectangle in the plane.