54 bool one_shot ,
bool lazy_open ,
unsigned int lazy_open_timeout ,
56 const std::string & image_input_source_name = std::string() ) ;
75 void operator=(
const Camera & ) ;
77 Capture * create(
const std::string & ,
const std::string & ,
bool ) ;
78 void onOpenTimeout() ;
79 void onReadTimeout() ;
80 void onSendTimeout() ;
87 virtual void readEvent()
override ;
88 virtual void onException( std::exception & )
override ;
92 std::string m_dev_name ;
93 std::string m_dev_config ;
96 unsigned int m_open_timeout ;
97 std::string m_caption ;
101 unique_ptr<Gv::Capture> m_capture ;
107 unsigned int m_sleep_ms ;
virtual ~Camera()
Destructor.
A high-level webcam interface that hooks into the GNet event loop and acts as an Gv::ImageInputSource...
A representation of a timezone.
An encapsulation of image type, including width, height and number of channels, with support for a st...
bool isOpen() const
Returns true if the webcam device is open.
A class holding shared read-only image data (Gr::ImageBuffer) and its associated image type (Gr::Imag...
A base class for classes that handle asynchronous events from the event loop.
A video capture abstract interface, exposing a file descriptor and a method to handle read events on ...
An image format converter that can convert to and from the raw and jpeg formats (only), with scaling and monochrome options.
A timer class template in which the timeout is delivered to the specified method. ...
Camera(Gr::ImageConverter &, const std::string &dev_name, const std::string &dev_config, bool one_shot, bool lazy_open, unsigned int lazy_open_timeout, const std::string &caption, const Gv::Timezone &caption_tz=Gv::Timezone(), const std::string &image_input_source_name=std::string())
Constructor.