Functions | Variables
rgb_camera_control.cpp File Reference
#include <iostream>
#include "utility.hpp"
#include "depthai/depthai.hpp"
Include dependency graph for rgb_camera_control.cpp:

Go to the source code of this file.

Functions

static int clamp (int num, int v0, int v1)
 
int main ()
 

Variables

static constexpr int EXP_STEP = 500
 
static constexpr int ISO_STEP = 50
 
static constexpr int LENS_STEP = 3
 
static constexpr int STEP_SIZE = 8
 
static constexpr int WB_STEP = 200
 

Function Documentation

◆ clamp()

static int clamp ( int  num,
int  v0,
int  v1 
)
static

Definition at line 31 of file rgb_camera_control.cpp.

◆ main()

int main ( )

Definition at line 35 of file rgb_camera_control.cpp.

Variable Documentation

◆ EXP_STEP

constexpr int EXP_STEP = 500
staticconstexpr

Definition at line 26 of file rgb_camera_control.cpp.

◆ ISO_STEP

constexpr int ISO_STEP = 50
staticconstexpr

Definition at line 27 of file rgb_camera_control.cpp.

◆ LENS_STEP

constexpr int LENS_STEP = 3
staticconstexpr

Definition at line 28 of file rgb_camera_control.cpp.

◆ STEP_SIZE

constexpr int STEP_SIZE = 8
staticconstexpr

This example shows usage of Camera Control message as well as ColorCamera configInput to change crop x and y Uses 'WASD' controls to move the crop window, 'C' to capture a still image, 'T' to trigger autofocus, 'IOKL,.[]' for manual exposure/focus/white-balance: Control: key[dec/inc] min..max exposure time: I O 1..33000 [us] sensitivity iso: K L 100..1600 focus: , . 0..255 [far..near] white balance: [ ] 1000..12000 (light color temperature K) To go back to auto controls: 'E' - autoexposure 'F' - autofocus (continuous) 'B' - auto white-balance

Definition at line 23 of file rgb_camera_control.cpp.

◆ WB_STEP

constexpr int WB_STEP = 200
staticconstexpr

Definition at line 29 of file rgb_camera_control.cpp.



depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20