7 #ifndef ALVISIONEXTRACTOR_H
8 #define ALVISIONEXTRACTOR_H
12 #include <alcommon/albroker.h>
14 #include <qi/macro.hpp>
19 class ALVideoDeviceProxy;
20 class ALVisionExtractorPrivate;
54 const std::string& pName,
56 int framerate=30,
int activecamera=-1);
73 virtual bool setFrameRate(
const std::string &pSubscribedName,
74 const int& framerate);
110 QI_API_DEPRECATED
void setParameter(
const std::string& paramName,
111 const ALValue& paramValue);
116 virtual void start() = 0;
129 void pause(
const bool& paused);
134 virtual void stop() = 0;
178 void xStartDetection(
const int pPeriod,
const float pPrecision);
179 void xStopDetection();
183 ALVisionExtractorPrivate* _pImpl;
188 #endif // ALVISIONEXTRACTOR_H
boost::shared_ptr< AL::ALVideoDeviceProxy > getVideoDeviceProxy()
virtual bool setColorSpace(const int &colorSpace)
Sets processed image colorspace on the fly.
virtual bool setResolution(const int &resolution)
Sets processed image resolution on the fly.
ALVisionExtractor(boost::shared_ptr< ALBroker > pBroker, const std::string &pName, int resolution=kQVGA, int colorspace=kBGRColorSpace, int framerate=30, int activecamera=-1)
Create a generic vision extractor.
void pause(const bool &paused)
Pause the extractor, without calling the stop method.
virtual void process(ALImage *img)=0
Method which will be called each time the extractor gets an image.
virtual bool setActiveCamera(const int &cameraId)
Sets the camera from which the image is taken.
int getDefaultPeriod()
This method overrides the method inherited from ALExtractor. It computes the default period from the ...
QI_API_DEPRECATED void setParameter(const std::string ¶mName, const ALValue ¶mValue)
Set parameter value for resolution and pause.
virtual void start()=0
Method which will be called before each subscription to the extractor.
int getMaximumPeriod()
This method overrides the method inherited from ALExtractor. It computes the maximum period from the ...
virtual ~ALVisionExtractor()
void setSubscriptionParameters(const std::vector< std::pair< int, int > > ¶meters)
int getMinimumPeriod()
This method overrides the method inherited from ALExtractor. It computes the minimum period from the ...
virtual void stop()=0
Method which will be called when the module is unsubscribed.
virtual bool setFrameRate(const int &framerate)
Sets extractor framerate on the fly.
ALVisionExtractor is a generic vision extractor.
void xUpdateParameters(const int pPeriod, const float pPrecision)