1 #include "gaze/pipeline_steps/source_capture.h"
6 #include "dlib/opencv.h"
7 #include "opencv2/opencv.hpp"
8 #include "yaml-cpp/yaml.h"
10 #include "gaze/util/config.h"
11 #include "gaze/util/data.h"
20 this->
name = config[
"name"] ?
26 bool is_webcam =
true;
28 int cam_source = std::stoi(source);
38 camera_config[
"fps"] ? camera_config[
"fps"].as<double>() : 60.0);
40 camera_config[
"resolution"][
"width"] ?
41 camera_config[
"resolution"][
"width"].as<double>() : 640.0);
43 camera_config[
"resolution"][
"height"] ?
44 camera_config[
"resolution"][
"height"].as<double>() : 360.0);
48 SourceCapture::~SourceCapture() {
std::shared_ptr< widget_type > widget
virtual bool read(OutputArray image)
void process(util::Data &data) override
void visualize(util::Data &data) override
dlib::array2d< dlib::bgr_pixel > image
virtual bool set(int propId, double value)
Wraps the data acquired per frame into a single instance.
virtual double get(int propId) const