SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
settings.hpp
1// settings.hpp
2// Created by Greg on 2/29/2024.
3// Copyright (C) 2025 Presage Security, Inc.
4//
5// SPDX-License-Identifier: LGPL-3.0-or-later
6
7#pragma once
8// === standard library includes (if any) ===
9// === third-party includes (if any) ===
10// === local includes (if any) ===
11#include "resolution_selection_mode.hpp"
12#include "input_transform.hpp"
13#include "camera/camera.hpp"
14#include "camera_tuner_settings.hpp"
15
16
17namespace presage::smartspectra::video_source {
18
24 // === webcam / camera stream, priority #3
25 int device_index = 0;
26 ResolutionSelectionMode resolution_selection_mode = ResolutionSelectionMode::Range;
27 int capture_width_px = -1;
28 int capture_height_px = -1;
29 camera::CameraResolutionRange resolution_range = camera::CameraResolutionRange::Mid;
30 camera::CaptureCodec codec = camera::CaptureCodec::MJPG;
31 bool auto_lock = true;
32 InputTransformMode input_transform_mode = InputTransformMode::None;
37
38 // === camera tuning
47
48 // === video file, priority #1, unless path empty
49 std::string input_video_path;
50 std::string input_video_time_path;
51 // === file stream, priority #2, unless path empty
59 std::string file_stream_path;
60
61 std::string end_of_stream_filename = "end_of_stream";
62 int rescan_retry_delay_ms = 10;
66 bool erase_read_files = true;
71 bool loop = false;
72
73};
74
75} // namespace presage::smartspectra::video_source
ResolutionSelectionMode
Definition resolution_selection_mode.hpp:18
InputTransformMode
Transformation applied to frames prior to processing.
Definition input_transform.hpp:19
Configuration parameters for the camera tuning process.
Definition camera_tuner_settings.hpp:14
Configuration options for constructing a VideoSource.
Definition settings.hpp:23
CameraTunerSettings tuner_settings
Definition settings.hpp:46
std::string file_stream_path
Definition settings.hpp:59