![]() |
SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
|
Public Member Functions | |
| absl::Status | Initialize (const VideoSourceSettings &settings) override |
| bool | SupportsExactFrameTimestamp () const override |
| int64_t | GetFrameTimestamp () const override |
| int | GetWidth () override |
| int | GetHeight () override |
| Public Member Functions inherited from presage::smartspectra::video_source::VideoSource | |
| VideoSource & | operator>> (cv::Mat &frame) |
| virtual absl::Status | TurnOnAutoExposure () |
| Enable automatic exposure mode. | |
| virtual absl::Status | TurnOffAutoExposure () |
| Disable automatic exposure and switch to manual mode. | |
| virtual absl::Status | ToggleAutoExposure () |
| Toggle between automatic and manual exposure modes. | |
| virtual absl::StatusOr< bool > | IsAutoExposureOn () |
| Check if automatic exposure is currently enabled. | |
| virtual absl::Status | IncreaseExposure () |
| Increase exposure by a fixed hardware-specific step. | |
| virtual absl::Status | DecreaseExposure () |
| Decrease exposure by a fixed hardware-specific step. | |
| virtual absl::Status | SetExposure (double value) |
| Set exposure to a normalized value. | |
| virtual absl::StatusOr< double > | GetExposure () |
| Get current exposure as a normalized value. | |
| virtual bool | SupportsExposureControls () |
| Check if this video source supports exposure controls. | |
| virtual bool | SupportsWhiteBalanceControls () |
| Check if this video source supports white balance controls. | |
| virtual absl::Status | TurnOnAutoWhiteBalance () |
| Enable automatic white balance mode. | |
| virtual absl::Status | TurnOffAutoWhiteBalance () |
| Disable automatic white balance and switch to manual mode. | |
| virtual absl::Status | ToggleAutoWhiteBalance () |
| Toggle between automatic and manual white balance modes. | |
| virtual absl::StatusOr< bool > | IsAutoWhiteBalanceOn () |
| Check if automatic white balance is currently enabled. | |
| virtual absl::Status | IncreaseWhiteBalance () |
| Increase white balance temperature by a fixed hardware-specific step. | |
| virtual absl::Status | DecreaseWhiteBalance () |
| Decrease white balance temperature by a fixed hardware-specific step. | |
| virtual absl::Status | SetWhiteBalance (double value) |
| Set white balance temperature to a normalized value. | |
| virtual absl::StatusOr< double > | GetWhiteBalance () |
| Get current white balance temperature as a normalized value. | |
| virtual bool | SupportsGainControl () |
| Check if this video source supports gain controls. | |
| virtual absl::Status | IncreaseGain () |
| Increase gain by a fixed hardware-specific step. | |
| virtual absl::Status | DecreaseGain () |
| Decrease gain by a fixed hardware-specific step. | |
| virtual absl::Status | SetGain (double value) |
| Set gain to a normalized value. | |
| virtual absl::StatusOr< double > | GetGain () |
| Get current gain as a normalized value. | |
| virtual InputTransformMode | GetDefaultInputTransformMode () |
| bool | HasFrameDimensions () |
| virtual bool | SupportsCompressedOutput () |
| virtual bool | ProduceCompressedFrame (std::vector< uint8_t > &jpeg_data) |
Protected Member Functions | |
| void | ProducePreTransformFrame (cv::Mat &frame) override |
Protected Attributes | |
| cv::VideoCapture | capture |
| Protected Attributes inherited from presage::smartspectra::video_source::VideoSource | |
| InputTransformer | input_transformer |
|
overridevirtual |
return the current frame's timestamp, in microseconds
Implements presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Configure the source with provided settings.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overrideprotectedvirtual |
Implements presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Implements presage::smartspectra::video_source::VideoSource.