#include <ColorCameraProperties.hpp>
Classes | |
struct | IspScale |
Public Attributes | |
CameraBoardSocket | boardSocket = CameraBoardSocket::AUTO |
std::string | cameraName = "" |
ColorOrder | colorOrder = ColorOrder::BGR |
std::vector< dai::FrameEvent > | eventFilter = {dai::FrameEvent::READOUT_START} |
bool | fp16 = false |
float | fps = 30.0 |
CameraImageOrientation | imageOrientation = CameraImageOrientation::AUTO |
RawCameraControl | initialControl |
bool | interleaved = true |
int | isp3aFps = 0 |
IspScale | ispScale |
int | numFramesPoolIsp = 3 |
int | numFramesPoolPreview = 4 |
int | numFramesPoolRaw = 3 |
int | numFramesPoolStill = 4 |
int | numFramesPoolVideo = 4 |
uint32_t | previewHeight = 300 |
bool | previewKeepAspectRatio = true |
uint32_t | previewWidth = 300 |
tl::optional< bool > | rawPacked |
SensorResolution | resolution = SensorResolution::THE_1080_P |
float | sensorCropX = AUTO |
float | sensorCropY = AUTO |
int32_t | stillHeight = AUTO |
int32_t | stillWidth = AUTO |
int32_t | videoHeight = AUTO |
int32_t | videoWidth = AUTO |
Static Public Attributes | |
static constexpr int | AUTO = -1 |
Additional Inherited Members | |
![]() | |
virtual std::unique_ptr< Properties > | clone () const override |
virtual void | serialize (std::vector< std::uint8_t > &data, SerializationType type=SerializationType::LIBNOP) const override |
![]() | |
virtual std::unique_ptr< Properties > | clone () const =0 |
virtual | ~Properties ()=default |
Specify properties for ColorCamera such as camera ID, ...
Definition at line 17 of file ColorCameraProperties.hpp.
|
strong |
For 24 bit color these can be either RGB or BGR
Enumerator | |
---|---|
BGR | |
RGB |
Definition at line 66 of file ColorCameraProperties.hpp.
|
strong |
Select the camera sensor resolution
Definition at line 32 of file ColorCameraProperties.hpp.
|
staticconstexpr |
Definition at line 18 of file ColorCameraProperties.hpp.
CameraBoardSocket dai::ColorCameraProperties::boardSocket = CameraBoardSocket::AUTO |
Which socket will color camera use
Definition at line 76 of file ColorCameraProperties.hpp.
std::string dai::ColorCameraProperties::cameraName = "" |
Which camera name will color camera use
Definition at line 81 of file ColorCameraProperties.hpp.
ColorOrder dai::ColorCameraProperties::colorOrder = ColorOrder::BGR |
For 24 bit color these can be either RGB or BGR
Definition at line 91 of file ColorCameraProperties.hpp.
std::vector<dai::FrameEvent> dai::ColorCameraProperties::eventFilter = {dai::FrameEvent::READOUT_START} |
List of events to receive, the rest will be ignored
Definition at line 177 of file ColorCameraProperties.hpp.
bool dai::ColorCameraProperties::fp16 = false |
Are values FP16 type (0.0 - 255.0)
Definition at line 99 of file ColorCameraProperties.hpp.
float dai::ColorCameraProperties::fps = 30.0 |
Camera sensor FPS
Definition at line 137 of file ColorCameraProperties.hpp.
CameraImageOrientation dai::ColorCameraProperties::imageOrientation = CameraImageOrientation::AUTO |
Camera sensor image orientation / pixel readout
Definition at line 86 of file ColorCameraProperties.hpp.
RawCameraControl dai::ColorCameraProperties::initialControl |
Definition at line 71 of file ColorCameraProperties.hpp.
bool dai::ColorCameraProperties::interleaved = true |
Are colors interleaved (R1G1B1, R2G2B2, ...) or planar (R1R2..., G1G2..., B1B2)
Definition at line 95 of file ColorCameraProperties.hpp.
int dai::ColorCameraProperties::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.
Definition at line 147 of file ColorCameraProperties.hpp.
IspScale dai::ColorCameraProperties::ispScale |
Configure scaling for isp
output.
Definition at line 163 of file ColorCameraProperties.hpp.
int dai::ColorCameraProperties::numFramesPoolIsp = 3 |
Definition at line 169 of file ColorCameraProperties.hpp.
int dai::ColorCameraProperties::numFramesPoolPreview = 4 |
Definition at line 171 of file ColorCameraProperties.hpp.
int dai::ColorCameraProperties::numFramesPoolRaw = 3 |
Pool sizes
Definition at line 168 of file ColorCameraProperties.hpp.
int dai::ColorCameraProperties::numFramesPoolStill = 4 |
Definition at line 172 of file ColorCameraProperties.hpp.
int dai::ColorCameraProperties::numFramesPoolVideo = 4 |
Definition at line 170 of file ColorCameraProperties.hpp.
uint32_t dai::ColorCameraProperties::previewHeight = 300 |
Preview frame output height
Definition at line 104 of file ColorCameraProperties.hpp.
bool dai::ColorCameraProperties::previewKeepAspectRatio = true |
Whether to keep aspect ratio of input (video size) or not
Definition at line 158 of file ColorCameraProperties.hpp.
uint32_t dai::ColorCameraProperties::previewWidth = 300 |
Preview frame output width
Definition at line 108 of file ColorCameraProperties.hpp.
tl::optional<bool> dai::ColorCameraProperties::rawPacked |
Configures whether the camera raw
frames are saved as MIPI-packed to memory. The packed format is more efficient, consuming less memory on device, and less data to send to host: RAW10: 4 pixels saved on 5 bytes, RAW12: 2 pixels saved on 3 bytes. When packing is disabled (false
), data is saved lsb-aligned, e.g. a RAW10 pixel will be stored as uint16, on bits 9..0: 0b0000'00pp'pppp'pppp. Default is auto: enabled for standard color/monochrome cameras where ISP can work with both packed/unpacked, but disabled for other cameras like ToF.
Definition at line 188 of file ColorCameraProperties.hpp.
SensorResolution dai::ColorCameraProperties::resolution = SensorResolution::THE_1080_P |
Select the camera sensor resolution
Definition at line 133 of file ColorCameraProperties.hpp.
float dai::ColorCameraProperties::sensorCropX = AUTO |
Initial sensor crop, -1 signifies center crop
Definition at line 152 of file ColorCameraProperties.hpp.
float dai::ColorCameraProperties::sensorCropY = AUTO |
Definition at line 153 of file ColorCameraProperties.hpp.
int32_t dai::ColorCameraProperties::stillHeight = AUTO |
Preview frame output height
Definition at line 128 of file ColorCameraProperties.hpp.
int32_t dai::ColorCameraProperties::stillWidth = AUTO |
Preview frame output width
Definition at line 123 of file ColorCameraProperties.hpp.
int32_t dai::ColorCameraProperties::videoHeight = AUTO |
Preview frame output height
Definition at line 118 of file ColorCameraProperties.hpp.
int32_t dai::ColorCameraProperties::videoWidth = AUTO |
Preview frame output width
Definition at line 113 of file ColorCameraProperties.hpp.