![]() |
SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
|
#include <v4l2_camera_source.hpp>
Public Member Functions | |
| V4l2CameraSource (const V4l2CameraSource &)=delete | |
| V4l2CameraSource & | operator= (const V4l2CameraSource &)=delete |
| V4l2CameraSource (V4l2CameraSource &&)=delete | |
| V4l2CameraSource & | operator= (V4l2CameraSource &&)=delete |
| absl::Status | Initialize (const VideoSourceSettings &settings) override |
| int | GetWidth () override |
| int | GetHeight () override |
| void | ProducePreTransformFrame (cv::Mat &frame) override |
| bool | SupportsExactFrameTimestamp () const override |
| int64_t | GetFrameTimestamp () const override |
| absl::Status | TurnOnAutoExposure () override |
| Enable automatic exposure mode. | |
| absl::Status | TurnOffAutoExposure () override |
| Disable automatic exposure and switch to manual mode. | |
| absl::Status | ToggleAutoExposure () override |
| Toggle between automatic and manual exposure modes. | |
| absl::StatusOr< bool > | IsAutoExposureOn () override |
| Check if automatic exposure is currently enabled. | |
| absl::Status | IncreaseExposure () override |
| Increase exposure by a fixed hardware-specific step. | |
| absl::Status | DecreaseExposure () override |
| Decrease exposure by a fixed hardware-specific step. | |
| absl::Status | SetExposure (double value) override |
| Set exposure to a normalized value. | |
| absl::StatusOr< double > | GetExposure () override |
| Get current exposure as a normalized value. | |
| bool | SupportsExposureControls () override |
| Check if this video source supports exposure controls. | |
| bool | SupportsWhiteBalanceControls () override |
| Check if this video source supports white balance controls. | |
| absl::Status | TurnOnAutoWhiteBalance () override |
| Enable automatic white balance mode. | |
| absl::Status | TurnOffAutoWhiteBalance () override |
| Disable automatic white balance and switch to manual mode. | |
| absl::Status | ToggleAutoWhiteBalance () override |
| Toggle between automatic and manual white balance modes. | |
| absl::StatusOr< bool > | IsAutoWhiteBalanceOn () override |
| Check if automatic white balance is currently enabled. | |
| absl::Status | IncreaseWhiteBalance () override |
| Increase white balance temperature by a fixed hardware-specific step. | |
| absl::Status | DecreaseWhiteBalance () override |
| Decrease white balance temperature by a fixed hardware-specific step. | |
| absl::Status | SetWhiteBalance (double value) override |
| Set white balance temperature to a normalized value. | |
| absl::StatusOr< double > | GetWhiteBalance () override |
| Get current white balance temperature as a normalized value. | |
| bool | SupportsGainControl () override |
| Check if this video source supports gain controls. | |
| absl::Status | IncreaseGain () override |
| Increase gain by a fixed hardware-specific step. | |
| absl::Status | DecreaseGain () override |
| Decrease gain by a fixed hardware-specific step. | |
| absl::Status | SetGain (double value) override |
| Set gain to a normalized value. | |
| absl::StatusOr< double > | GetGain () override |
| Get current gain as a normalized value. | |
| bool | SupportsCompressedOutput () override |
| bool | ProduceCompressedFrame (std::vector< uint8_t > &jpeg_data) override |
| InputTransformMode | GetDefaultInputTransformMode () override |
| Public Member Functions inherited from presage::smartspectra::video_source::VideoSource | |
| VideoSource & | operator>> (cv::Mat &frame) |
| bool | HasFrameDimensions () |
Additional Inherited Members | |
| Protected Attributes inherited from presage::smartspectra::video_source::VideoSource | |
| InputTransformer | input_transformer |
Video source that uses direct v4l2 API for camera capture on Linux. Provides full control over camera settings including exposure and format. Supports zero-copy compressed MJPEG output when available.
|
overridevirtual |
Decrease exposure by a fixed hardware-specific step.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Decrease gain by a fixed hardware-specific step.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Decrease white balance temperature by a fixed hardware-specific step.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Get current exposure as a normalized value.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
return the current frame's timestamp, in microseconds
Implements presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Get current gain as a normalized value.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Get current white balance temperature as a normalized value.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Increase exposure by a fixed hardware-specific step.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Increase gain by a fixed hardware-specific step.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Increase white balance temperature by a fixed hardware-specific step.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Configure the source with provided settings.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Check if automatic exposure is currently enabled.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Check if automatic white balance is currently enabled.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Get the next frame as compressed JPEG data (if supported). Only call this if SupportsCompressedOutput() returns true.
| jpeg_data | Output buffer for compressed JPEG data |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Implements presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Set exposure to a normalized value.
| value | Normalized exposure value in range [0.0, 1.0] where 0.0 is minimum and 1.0 is maximum. |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Set gain to a normalized value.
| value | Normalized gain value in range [0.0, 1.0] where 0.0 is minimum and 1.0 is maximum. |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Set white balance temperature to a normalized value.
| value | Normalized white balance value in range [0.0, 1.0] where 0.0 is coolest and 1.0 is warmest. |
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Check if this video source can provide compressed JPEG frames directly. This allows bypassing recompression when the source already provides MJPEG.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Implements presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Check if this video source supports exposure controls.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Check if this video source supports gain controls.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Check if this video source supports white balance controls.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Toggle between automatic and manual exposure modes.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Toggle between automatic and manual white balance modes.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Disable automatic exposure and switch to manual mode.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Disable automatic white balance and switch to manual mode.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Enable automatic exposure mode.
Reimplemented from presage::smartspectra::video_source::VideoSource.
|
overridevirtual |
Enable automatic white balance mode.
Reimplemented from presage::smartspectra::video_source::VideoSource.