SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
presage::smartspectra::video_source::VideoSourceSettings Struct Reference

Configuration options for constructing a VideoSource. More...

#include <settings.hpp>

Public Attributes

int device_index = 0
ResolutionSelectionMode resolution_selection_mode = ResolutionSelectionMode::Range
int capture_width_px = -1
int capture_height_px = -1
camera::CameraResolutionRange resolution_range = camera::CameraResolutionRange::Mid
camera::CaptureCodec codec = camera::CaptureCodec::MJPG
bool auto_lock = true
InputTransformMode input_transform_mode = InputTransformMode::None
bool log_verbose_controls = false
bool enable_camera_tuning = false
CameraTunerSettings tuner_settings = {}
std::string input_video_path
std::string input_video_time_path
std::string file_stream_path
std::string end_of_stream_filename = "end_of_stream"
int rescan_retry_delay_ms = 10
bool erase_read_files = true
bool loop = false

Detailed Description

Configuration options for constructing a VideoSource.

Member Data Documentation

◆ enable_camera_tuning

bool presage::smartspectra::video_source::VideoSourceSettings::enable_camera_tuning = false

enable automatic camera tuning (exposure, gain, white balance)

◆ erase_read_files

bool presage::smartspectra::video_source::VideoSourceSettings::erase_read_files = true

erase file(s) that have already been read in as soon as a newer file appears

◆ file_stream_path

std::string presage::smartspectra::video_source::VideoSourceSettings::file_stream_path

path to files in file stream, e.g. "/path/to/files/frame0000000000000.png".

The zero padding signifies the digit count in frame timestamp and can be preceded by a non-digit prefix and/or followed by a non-digit postfix and extension. The timestamp is assumed to use whole microseconds as units. The extension is mandatory. Any extension and its corresponding image codec that is supported by the OpenCV dependency is also supported here (commonly, .png and .jpg are among those).

◆ log_verbose_controls

bool presage::smartspectra::video_source::VideoSourceSettings::log_verbose_controls = false

where available, log verbose camera/video source controls

◆ loop

bool presage::smartspectra::video_source::VideoSourceSettings::loop = false

loop – loop around after reaching the maximum frame index in directory.

loop=true is incompatible with erase_read_files=true argument.

◆ tuner_settings

CameraTunerSettings presage::smartspectra::video_source::VideoSourceSettings::tuner_settings = {}

camera tuning settings


The documentation for this struct was generated from the following file: