RawCameraControl structure.
More...
#include <RawCameraControl.hpp>
|
enum | AntiBandingMode : uint8_t { AntiBandingMode::OFF = 0,
AntiBandingMode::MAINS_50_HZ,
AntiBandingMode::MAINS_60_HZ,
AntiBandingMode::AUTO
} |
|
enum | AutoFocusMode : uint8_t {
AutoFocusMode::OFF = 0,
AutoFocusMode::AUTO,
AutoFocusMode::MACRO,
AutoFocusMode::CONTINUOUS_VIDEO,
AutoFocusMode::CONTINUOUS_PICTURE,
AutoFocusMode::EDOF
} |
|
enum | AutoWhiteBalanceMode : uint8_t {
AutoWhiteBalanceMode::OFF = 0,
AutoWhiteBalanceMode::AUTO,
AutoWhiteBalanceMode::INCANDESCENT,
AutoWhiteBalanceMode::FLUORESCENT,
AutoWhiteBalanceMode::WARM_FLUORESCENT,
AutoWhiteBalanceMode::DAYLIGHT,
AutoWhiteBalanceMode::CLOUDY_DAYLIGHT,
AutoWhiteBalanceMode::TWILIGHT,
AutoWhiteBalanceMode::SHADE
} |
|
enum | CaptureIntent : uint8_t {
CaptureIntent::CUSTOM = 0,
CaptureIntent::PREVIEW,
CaptureIntent::STILL_CAPTURE,
CaptureIntent::VIDEO_RECORD,
CaptureIntent::VIDEO_SNAPSHOT,
CaptureIntent::ZERO_SHUTTER_LAG
} |
|
enum | Command : uint8_t {
Command::START_STREAM = 1,
Command::STOP_STREAM = 2,
Command::STILL_CAPTURE = 3,
Command::MOVE_LENS = 4,
Command::AF_TRIGGER = 5,
Command::AE_MANUAL = 6,
Command::AE_AUTO = 7,
Command::AWB_MODE = 8,
Command::SCENE_MODE = 9,
Command::ANTIBANDING_MODE = 10,
Command::EXPOSURE_COMPENSATION = 11,
Command::AE_LOCK = 13,
Command::AE_TARGET_FPS_RANGE = 14,
Command::AWB_LOCK = 16,
Command::CAPTURE_INTENT = 17,
Command::CONTROL_MODE = 18,
Command::FRAME_DURATION = 21,
Command::SENSITIVITY = 23,
Command::EFFECT_MODE = 24,
Command::AF_MODE = 26,
Command::NOISE_REDUCTION_STRENGTH = 27,
Command::SATURATION = 28,
Command::BRIGHTNESS = 31,
Command::STREAM_FORMAT = 33,
Command::RESOLUTION = 34,
Command::SHARPNESS = 35,
Command::CUSTOM_USECASE = 40,
Command::CUSTOM_CAPT_MODE = 41,
Command::CUSTOM_EXP_BRACKETS = 42,
Command::CUSTOM_CAPTURE = 43,
Command::CONTRAST = 44,
Command::AE_REGION = 45,
Command::AF_REGION = 46,
Command::LUMA_DENOISE = 47,
Command::CHROMA_DENOISE = 48,
Command::WB_COLOR_TEMP = 49,
Command::EXTERNAL_TRIGGER = 50,
Command::AF_LENS_RANGE = 51,
Command::FRAME_SYNC = 52,
Command::STROBE_CONFIG = 53,
Command::STROBE_TIMINGS = 54,
Command::MOVE_LENS_RAW = 55
} |
|
enum | ControlMode : uint8_t { ControlMode::OFF = 0,
ControlMode::AUTO,
ControlMode::USE_SCENE_MODE
} |
|
enum | EffectMode : uint8_t {
EffectMode::OFF = 0,
EffectMode::MONO,
EffectMode::NEGATIVE,
EffectMode::SOLARIZE,
EffectMode::SEPIA,
EffectMode::POSTERIZE,
EffectMode::WHITEBOARD,
EffectMode::BLACKBOARD,
EffectMode::AQUA
} |
|
enum | FrameSyncMode : uint8_t { FrameSyncMode::OFF = 0,
FrameSyncMode::OUTPUT,
FrameSyncMode::INPUT
} |
|
enum | SceneMode : uint8_t {
SceneMode::UNSUPPORTED = 0,
SceneMode::FACE_PRIORITY,
SceneMode::ACTION,
SceneMode::PORTRAIT,
SceneMode::LANDSCAPE,
SceneMode::NIGHT,
SceneMode::NIGHT_PORTRAIT,
SceneMode::THEATRE,
SceneMode::BEACH,
SceneMode::SNOW,
SceneMode::SUNSET,
SceneMode::STEADYPHOTO,
SceneMode::FIREWORKS,
SceneMode::SPORTS,
SceneMode::PARTY,
SceneMode::CANDLELIGHT,
SceneMode::BARCODE
} |
|
|
void | clearCommand (Command cmd) |
|
| DEPTHAI_SERIALIZE (RawCameraControl, cmdMask, autoFocusMode, lensPosition, lensPositionRaw, lensPosAutoInfinity, lensPosAutoMacro, expManual, aeRegion, afRegion, awbMode, sceneMode, antiBandingMode, aeLockMode, awbLockMode, captureIntent, controlMode, effectMode, frameSyncMode, strobeConfig, strobeTimings, aeMaxExposureTimeUs, expCompensation, brightness, contrast, saturation, sharpness, lumaDenoise, chromaDenoise, wbColorTemp, lowPowerNumFramesBurst, lowPowerNumFramesDiscard, miscControls) |
|
bool | getCommand (Command cmd) |
|
DatatypeEnum | getType () const override |
|
void | serialize (std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override |
|
void | setCommand (Command cmd, bool value=true) |
|
| DEPTHAI_SERIALIZE (RawBuffer, sequenceNum, ts, tsDevice) |
|
virtual | ~RawBuffer ()=default |
|
RawCameraControl structure.
Definition at line 12 of file RawCameraControl.hpp.
◆ AntiBandingMode
Enumerator |
---|
OFF | The camera device will not adjust exposure duration to avoid banding problems.
|
MAINS_50_HZ | The camera device will adjust exposure duration to avoid banding problems with 50Hz illumination sources.
|
MAINS_60_HZ | The camera device will adjust exposure duration to avoid banding problems with 60Hz illumination sources.
|
AUTO | The camera device will automatically adapt its antibanding routine to the current illumination condition. This is the default mode if AUTO is available on given camera device.
|
Definition at line 249 of file RawCameraControl.hpp.
◆ AutoFocusMode
Enumerator |
---|
OFF | Autofocus disabled. Suitable for manual focus
|
AUTO | Basic automatic focus mode. In this mode, the lens does not move unless the autofocus trigger action is called.
|
MACRO | Close-up focusing mode - this mode is optimized for focusing on objects very close to the camera.
|
CONTINUOUS_VIDEO | In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream. The focusing behavior should be suitable for good quality video recording; typically this means slower focus movement and no overshoots.
|
CONTINUOUS_PICTURE | In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream. The focusing behavior should be suitable for still image capture; typically this means focusing as fast as possible
|
EDOF | Extended depth of field (digital focus) mode. The camera device will produce images with an extended depth of field automatically. AF triggers are ignored.
|
Definition at line 103 of file RawCameraControl.hpp.
◆ AutoWhiteBalanceMode
Enumerator |
---|
OFF | The camera device's auto-white balance routine is disabled.
|
AUTO | The camera device's auto-white balance routine is active.
|
INCANDESCENT | The camera device's auto-white balance routine is disabled; the camera device uses incandescent light as the assumed scene illumination for white balance.
|
FLUORESCENT | The camera device's auto-white balance routine is disabled; the camera device uses fluorescent light as the assumed scene illumination for white balance.
|
WARM_FLUORESCENT | The camera device's auto-white balance routine is disabled; the camera device uses warm fluorescent light as the assumed scene illumination for white balance.
|
DAYLIGHT | The camera device's auto-white balance routine is disabled; the camera device uses daylight light as the assumed scene illumination for white balance.
|
CLOUDY_DAYLIGHT | The camera device's auto-white balance routine is disabled; the camera device uses cloudy daylight light as the assumed scene illumination for white balance.
|
TWILIGHT | The camera device's auto-white balance routine is disabled; the camera device uses twilight light as the assumed scene illumination for white balance.
|
SHADE | The camera device's auto-white balance routine is disabled; the camera device uses shade light as the assumed scene illumination for white balance.
|
Definition at line 133 of file RawCameraControl.hpp.
◆ CaptureIntent
Enumerator |
---|
CUSTOM | The goal of this request doesn't fall into the other categories. The camera device will default to preview-like behavior.
|
PREVIEW | This request is for a preview-like use case.
|
STILL_CAPTURE | This request is for a still capture-type use case.
|
VIDEO_RECORD | This request is for a video recording use case.
|
VIDEO_SNAPSHOT | This request is for a video snapshot (still image while recording video) use case. The camera device should take the highest-quality image possible (given the other settings) without disrupting the frame rate of video recording.
|
ZERO_SHUTTER_LAG | This request is for a ZSL usecase; the application will stream full-resolution images and reprocess one or several later for a final capture.
|
Definition at line 269 of file RawCameraControl.hpp.
◆ Command
Enumerator |
---|
START_STREAM | |
STOP_STREAM | |
STILL_CAPTURE | |
MOVE_LENS | |
AF_TRIGGER | |
AE_MANUAL | |
AE_AUTO | |
AWB_MODE | |
SCENE_MODE | |
ANTIBANDING_MODE | |
EXPOSURE_COMPENSATION | |
AE_LOCK | |
AE_TARGET_FPS_RANGE | |
AWB_LOCK | |
CAPTURE_INTENT | |
CONTROL_MODE | |
FRAME_DURATION | |
SENSITIVITY | |
EFFECT_MODE | |
AF_MODE | |
NOISE_REDUCTION_STRENGTH | |
SATURATION | |
BRIGHTNESS | |
STREAM_FORMAT | |
RESOLUTION | |
SHARPNESS | |
CUSTOM_USECASE | |
CUSTOM_CAPT_MODE | |
CUSTOM_EXP_BRACKETS | |
CUSTOM_CAPTURE | |
CONTRAST | |
AE_REGION | |
AF_REGION | |
LUMA_DENOISE | |
CHROMA_DENOISE | |
WB_COLOR_TEMP | |
EXTERNAL_TRIGGER | |
AF_LENS_RANGE | |
FRAME_SYNC | |
STROBE_CONFIG | |
STROBE_TIMINGS | |
MOVE_LENS_RAW | |
Definition at line 13 of file RawCameraControl.hpp.
◆ ControlMode
Enumerator |
---|
OFF | Full application control of pipeline. All control by the device's metering and focusing (3A) routines is disabled.
|
AUTO | Use settings for each individual 3A routine. Manual control of capture parameters is disabled.
|
USE_SCENE_MODE | Use a specific scene mode. Enabling this disables Auto-Exposure, AWB and AF controls;
|
Definition at line 298 of file RawCameraControl.hpp.
◆ EffectMode
Enumerator |
---|
OFF | No color effect will be applied.
|
MONO | A "monocolor" effect where the image is mapped into a single color. This will typically be grayscale.
|
NEGATIVE | A "photo-negative" effect where the image's colors are inverted.
|
SOLARIZE | A "solarisation" effect (Sabattier effect) where the image is wholly or partially reversed in tone.
|
SEPIA | A "sepia" effect where the image is mapped into warm gray, red, and brown tones.
|
POSTERIZE | A "posterization" effect where the image uses discrete regions of tone rather than a continuous gradient of tones.
|
WHITEBOARD | A "whiteboard" effect where the image is typically displayed as regions of white, with black or grey details.
|
BLACKBOARD | A "blackboard" effect where the image is typically displayed as regions of black, with white or grey details.
|
AQUA | An "aqua" effect where a blue hue is added to the image.
|
Definition at line 313 of file RawCameraControl.hpp.
◆ FrameSyncMode
◆ SceneMode
Enumerator |
---|
UNSUPPORTED | Indicates that no scene modes are set for a given capture request.
|
FACE_PRIORITY | If face detection support exists, use face detection data for auto-focus, auto-white balance, and auto-exposure routines.
|
ACTION | Optimized for photos of quickly moving objects. Similar to SPORTS scene mode.
|
PORTRAIT | Optimized for still photos of people.
|
LANDSCAPE | Optimized for photos of distant macroscopic objects.
|
NIGHT | Optimized for low-light settings.
|
NIGHT_PORTRAIT | Optimized for still photos of people in low-light settings.
|
THEATRE | Optimized for dim, indoor settings where flash must remain off.
|
BEACH | Optimized for bright, outdoor beach settings.
|
SNOW | Optimized for bright, outdoor settings containing snow.
|
SUNSET | Optimized for scenes of the setting sun.
|
STEADYPHOTO | Optimized to avoid blurry photos due to small amounts of device motion (for example: due to hand shake).
|
FIREWORKS | Optimized for nighttime photos of fireworks.
|
SPORTS | Optimized for photos of quickly moving people.
|
PARTY | Optimized for dim, indoor settings with multiple moving people.
|
CANDLELIGHT | Optimized for dim settings where the main light source is a candle.
|
BARCODE | Optimized for accurately capturing a photo of barcode for use by camera applications that wish to read the barcode value.
|
Definition at line 178 of file RawCameraControl.hpp.
◆ clearCommand()
void dai::RawCameraControl::clearCommand |
( |
Command |
cmd | ) |
|
|
inline |
◆ DEPTHAI_SERIALIZE()
dai::RawCameraControl::DEPTHAI_SERIALIZE |
( |
RawCameraControl |
, |
|
|
cmdMask |
, |
|
|
autoFocusMode |
, |
|
|
lensPosition |
, |
|
|
lensPositionRaw |
, |
|
|
lensPosAutoInfinity |
, |
|
|
lensPosAutoMacro |
, |
|
|
expManual |
, |
|
|
aeRegion |
, |
|
|
afRegion |
, |
|
|
awbMode |
, |
|
|
sceneMode |
, |
|
|
antiBandingMode |
, |
|
|
aeLockMode |
, |
|
|
awbLockMode |
, |
|
|
captureIntent |
, |
|
|
controlMode |
, |
|
|
effectMode |
, |
|
|
frameSyncMode |
, |
|
|
strobeConfig |
, |
|
|
strobeTimings |
, |
|
|
aeMaxExposureTimeUs |
, |
|
|
expCompensation |
, |
|
|
brightness |
, |
|
|
contrast |
, |
|
|
saturation |
, |
|
|
sharpness |
, |
|
|
lumaDenoise |
, |
|
|
chromaDenoise |
, |
|
|
wbColorTemp |
, |
|
|
lowPowerNumFramesBurst |
, |
|
|
lowPowerNumFramesDiscard |
, |
|
|
miscControls |
|
|
) |
| |
◆ getCommand()
bool dai::RawCameraControl::getCommand |
( |
Command |
cmd | ) |
|
|
inline |
◆ getType()
◆ serialize()
void dai::RawCameraControl::serialize |
( |
std::vector< std::uint8_t > & |
metadata, |
|
|
DatatypeEnum & |
datatype |
|
) |
| const |
|
inlineoverridevirtual |
◆ setCommand()
void dai::RawCameraControl::setCommand |
( |
Command |
cmd, |
|
|
bool |
value = true |
|
) |
| |
|
inline |
◆ aeLockMode
bool dai::RawCameraControl::aeLockMode |
◆ aeMaxExposureTimeUs
uint32_t dai::RawCameraControl::aeMaxExposureTimeUs |
◆ aeRegion
◆ afRegion
◆ antiBandingMode
◆ autoFocusMode
◆ awbLockMode
bool dai::RawCameraControl::awbLockMode |
◆ awbMode
◆ brightness
int8_t dai::RawCameraControl::brightness |
◆ captureIntent
◆ chromaDenoise
uint8_t dai::RawCameraControl::chromaDenoise |
◆ cmdMask
uint64_t dai::RawCameraControl::cmdMask = 0 |
◆ contrast
int8_t dai::RawCameraControl::contrast |
◆ controlMode
◆ effectMode
◆ expCompensation
int8_t dai::RawCameraControl::expCompensation |
◆ expManual
◆ frameSyncMode
◆ lensPosAutoInfinity
uint8_t dai::RawCameraControl::lensPosAutoInfinity |
◆ lensPosAutoMacro
uint8_t dai::RawCameraControl::lensPosAutoMacro |
◆ lensPosition
uint8_t dai::RawCameraControl::lensPosition = 0 |
Lens/VCM position, range: 0..255. Used with autoFocusMode = OFF
. With current IMX378 modules:
- max 255: macro focus, at 8cm distance
- infinite focus at about 120..130 (may vary from module to module)
- lower values lead to out-of-focus (lens too close to the sensor array)
Definition at line 412 of file RawCameraControl.hpp.
◆ lensPositionRaw
float dai::RawCameraControl::lensPositionRaw = 0 |
◆ lowPowerNumFramesBurst
uint8_t dai::RawCameraControl::lowPowerNumFramesBurst |
◆ lowPowerNumFramesDiscard
uint8_t dai::RawCameraControl::lowPowerNumFramesDiscard |
◆ lumaDenoise
uint8_t dai::RawCameraControl::lumaDenoise |
◆ miscControls
std::vector<std::pair<std::string, std::string> > dai::RawCameraControl::miscControls |
◆ saturation
int8_t dai::RawCameraControl::saturation |
◆ sceneMode
◆ sharpness
uint8_t dai::RawCameraControl::sharpness |
◆ strobeConfig
◆ strobeTimings
◆ wbColorTemp
uint16_t dai::RawCameraControl::wbColorTemp |
The documentation for this struct was generated from the following file: