| 
    gaze
    0.1.0
    
   Perform gaze tracking with common webcams. 
   | 
 
Retrieves frames from a webcam or video source. More...
#include "gaze/pipeline_steps/source_capture.h"
  
 Public Member Functions | |
| void | process (util::Data &data) override | 
| void | visualize (util::Data &data) override | 
Creating a source capture  | |
| SourceCapture () | |
  Public Member Functions inherited from gaze::PipelineStep | |
| PipelineStep () | |
| std::string | get_name () | 
| virtual | ~PipelineStep ()=default | 
  Public Member Functions inherited from gaze::gui::Visualizeable< widget_type > | |
| std::shared_ptr< dlib::drawable > | init (dlib::drawable_window &parent, int width, int height, std::string text="No visualization.") final | 
| void | remove_widget () override | 
  Public Member Functions inherited from gaze::gui::VisualizeableBase | |
| virtual | ~VisualizeableBase ()=default | 
Additional Inherited Members | |
  Protected Attributes inherited from gaze::PipelineStep | |
| int | number | 
| std::string | name | 
  Protected Attributes inherited from gaze::gui::Visualizeable< widget_type > | |
| std::shared_ptr< widget_type > | widget | 
Retrieves frames from a webcam or video source.
Should be used at the beginning of a Pipeline.
Definition at line 24 of file source_capture.h.
| gaze::pipeline::SourceCapture::SourceCapture | ( | ) | 
Creates a cv::VideoCapture as the input source.
If the source specified in the yaml configuration is a string, it is considered as a path, otherwise the number will be parsed as a webcam address.
Definition at line 18 of file source_capture.cpp.
References cv::CAP_PROP_FPS, cv::CAP_PROP_FRAME_HEIGHT, cv::CAP_PROP_FRAME_WIDTH, gaze::util::get_config(), gaze::PipelineStep::name, gaze::PipelineStep::number, and cv::VideoCapture::set().
      
  | 
  overridevirtual | 
Reads a frame from the video source and stores it as the data's util::Data::souce_image.
| data | The data object to be updated. | 
data the modified data object. Implements gaze::PipelineStep.
Definition at line 52 of file source_capture.cpp.
References cv::CAP_PROP_POS_AVI_RATIO, cv::VideoCapture::get(), gaze::util::Data::image, cv::VideoCapture::read(), and gaze::util::Data::source_image.
      
  | 
  overridevirtual | 
Just assigns the data's raw camera image to the widget.
| data | the data object. | 
Implements gaze::gui::VisualizeableBase.
Definition at line 68 of file source_capture.cpp.
References gaze::util::Data::image, and gaze::gui::Visualizeable< widget_type >::widget.
 1.8.6