36 #ifndef _vpDetectorBase_h_
37 #define _vpDetectorBase_h_
44 #include <visp3/core/vpImage.h>
45 #include <visp3/core/vpImagePoint.h>
46 #include <visp3/core/vpRect.h>
93 vpRect getBBox(
size_t i)
const;
108 std::string &getMessage(
size_t i);
118 std::vector<std::vector<vpImagePoint> > &
getPolygon() {
return m_polygon; }
123 std::vector<vpImagePoint> &getPolygon(
size_t i);
126 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.