Struct CameraProperties

Inheritance Relationships

Base Type

Struct Documentation

struct CameraProperties : public dai::PropertiesSerializable<Properties, CameraProperties>

Specify properties for Camera such as camera ID, …

Public Functions

~CameraProperties() override

Public Members

std::vector<ImgFrameCapability> outputRequests
CameraControl initialControl

Initial controls applied to the camera node

CameraBoardSocket boardSocket = CameraBoardSocket::AUTO

Which socket will this camera node use

CameraSensorType sensorType = CameraSensorType::AUTO

Camera sensor type (you can pick one in case the given sensor supports multiple types)

std::string cameraName = ""

Which camera name will this camera node use (e.g. “IMX378”, “OV9282”)

CameraImageOrientation imageOrientation = CameraImageOrientation::AUTO

Camera sensor image orientation / pixel readout

int32_t resolutionWidth = AUTO

Select the camera sensor width (e.g. 1920, 1280, 640, etc.)

int32_t resolutionHeight = AUTO

Select the camera sensor height (e.g. 1080, 720, 400, etc.)

int32_t mockIspWidth = AUTO

Select the mock isp width. Overrides resolutionWidth/height if mockIsp is connected (e.g. 1920, 1280, 640, etc.)

int32_t mockIspHeight = AUTO

Select the mock isp height. Overrides resolutionWidth/height if mockIsp is connected (e.g. 1080, 720, 400, etc.)

float mockIspFps = AUTO

Select the mock isp fps. Overrides fps if mockIsp is connected (e.g. 30, 25, 20, etc.)

float fps = AUTO

Camera sensor FPS (e.g. 30, 25, 20, etc.)

int isp3aFps = 0

Isp 3A rate (auto focus, auto exposure, auto white balance, camera controls etc.). Default (0) matches the camera FPS, meaning that 3A is running on each frame. Reducing the rate of 3A reduces the CPU usage on CSS, but also increases the convergence rate of 3A. Note that camera controls will be processed at this rate. E.g. if camera is running at 30 fps, and camera control is sent at every frame, but 3A fps is set to 15, the camera control messages will be processed at 15 fps rate, which will lead to queueing.

int numFramesPoolRaw = 3

Number of frames in different pools and the maximum size in bytes of each pool (number of frames will be automatically reduced if the size is exceeded) Raw pool

int maxSizePoolRaw = 1024 * 1024 * 10
int numFramesPoolIsp = 3

Isp pool

int maxSizePoolIsp = 1024 * 1024 * 10
int numFramesPoolVideo = 4

Video pool

int numFramesPoolPreview = 4

Preview pool

int numFramesPoolStill = 4

Still pool

int numFramesPoolOutputs = 3

Outputs frame pools

int maxSizePoolOutputs = 10 * 1024 * 1024

Public Static Attributes

static constexpr int AUTO = -1