Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
shared
depthai-shared
include
depthai-shared
properties
CameraProperties.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
depthai-shared/common/CameraBoardSocket.hpp
"
4
#include "
depthai-shared/common/CameraImageOrientation.hpp
"
5
#include "
depthai-shared/common/CameraSensorType.hpp
"
6
#include "
depthai-shared/common/optional.hpp
"
7
#include "
depthai-shared/datatype/RawCameraControl.hpp
"
8
#include "
depthai-shared/properties/Properties.hpp
"
9
10
namespace
dai
{
11
15
struct
CameraProperties
:
PropertiesSerializable
<Properties, CameraProperties> {
16
static
constexpr
int
AUTO
= -1;
17
18
struct
IspScale
{
19
int32_t
horizNumerator
= 0;
20
int32_t
horizDenominator
= 0;
21
int32_t
vertNumerator
= 0;
22
int32_t
vertDenominator
= 0;
23
24
DEPTHAI_SERIALIZE
(
IspScale
,
horizNumerator
,
horizDenominator
,
vertNumerator
,
vertDenominator
);
25
};
26
30
enum class
ColorOrder
: int32_t {
BGR
,
RGB
};
31
35
RawCameraControl
initialControl
;
36
40
CameraBoardSocket
boardSocket
=
CameraBoardSocket::AUTO
;
41
45
std::string
cameraName
=
""
;
46
50
CameraImageOrientation
imageOrientation
=
CameraImageOrientation::AUTO
;
51
55
ColorOrder
colorOrder
=
ColorOrder::BGR
;
59
bool
interleaved
=
true
;
63
bool
fp16
=
false
;
64
65
static
constexpr uint32_t
DEFAULT_PREVIEW_HEIGHT
= 300;
66
static
constexpr uint32_t
DEFAULT_PREVIEW_WIDTH
= 300;
67
71
uint32_t
previewHeight
=
DEFAULT_PREVIEW_HEIGHT
;
75
uint32_t
previewWidth
=
DEFAULT_PREVIEW_WIDTH
;
76
80
int32_t
videoWidth
=
AUTO
;
81
85
int32_t
videoHeight
=
AUTO
;
86
90
int32_t
stillWidth
=
AUTO
;
91
95
int32_t
stillHeight
=
AUTO
;
96
100
int32_t
resolutionWidth
=
AUTO
;
104
int32_t
resolutionHeight
=
AUTO
;
105
109
float
fps
= 30.0;
110
119
int
isp3aFps
= 0;
120
124
float
sensorCropX
=
AUTO
;
125
float
sensorCropY
=
AUTO
;
126
130
bool
previewKeepAspectRatio
=
false
;
131
135
IspScale
ispScale
;
136
138
CameraSensorType
sensorType
=
CameraSensorType::AUTO
;
139
143
int
numFramesPoolRaw
= 3;
144
int
numFramesPoolIsp
= 3;
145
int
numFramesPoolVideo
= 4;
146
int
numFramesPoolPreview
= 4;
147
int
numFramesPoolStill
= 4;
148
152
enum class
WarpMeshSource
{
AUTO
= -1,
NONE
,
CALIBRATION
,
URI
};
153
WarpMeshSource
warpMeshSource
=
WarpMeshSource::AUTO
;
154
std::string
warpMeshUri
=
""
;
155
int
warpMeshWidth
,
warpMeshHeight
;
163
tl::optional<float>
calibAlpha
;
164
int
warpMeshStepWidth
= 32;
165
int
warpMeshStepHeight
= 32;
166
176
tl::optional<bool>
rawPacked
;
177
};
178
179
DEPTHAI_SERIALIZE_EXT
(
CameraProperties
,
180
initialControl,
181
boardSocket,
182
cameraName,
183
imageOrientation,
184
colorOrder,
185
interleaved,
186
fp16,
187
previewHeight,
188
previewWidth,
189
videoWidth,
190
videoHeight,
191
stillWidth,
192
stillHeight,
193
resolutionWidth,
194
resolutionHeight,
195
fps
,
196
isp3aFps,
197
sensorCropX,
198
sensorCropY,
199
previewKeepAspectRatio,
200
ispScale,
201
sensorType,
202
numFramesPoolRaw,
203
numFramesPoolIsp,
204
numFramesPoolVideo,
205
numFramesPoolPreview,
206
numFramesPoolStill,
207
warpMeshSource,
208
warpMeshUri,
209
warpMeshWidth,
210
warpMeshHeight,
211
calibAlpha,
212
warpMeshStepWidth,
213
warpMeshStepHeight,
214
rawPacked);
215
216
}
// namespace dai
dai::CameraBoardSocket::AUTO
@ AUTO
dai::CameraProperties::stillWidth
int32_t stillWidth
Definition:
CameraProperties.hpp:90
dai::CameraProperties::DEFAULT_PREVIEW_HEIGHT
static constexpr uint32_t DEFAULT_PREVIEW_HEIGHT
Definition:
CameraProperties.hpp:65
dai::CameraProperties::WarpMeshSource::NONE
@ NONE
dai::RawCameraControl
RawCameraControl structure.
Definition:
RawCameraControl.hpp:12
dai::CameraSensorType
CameraSensorType
Camera sensor type.
Definition:
shared/depthai-shared/include/depthai-shared/common/CameraSensorType.hpp:8
optional.hpp
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::CameraImageOrientation
CameraImageOrientation
Definition:
shared/depthai-shared/include/depthai-shared/common/CameraImageOrientation.hpp:11
dai::CameraProperties::IspScale::horizDenominator
int32_t horizDenominator
Definition:
CameraProperties.hpp:20
dai::CameraSensorType::AUTO
@ AUTO
dai::CameraProperties::resolutionHeight
int32_t resolutionHeight
Definition:
CameraProperties.hpp:104
dai::CameraProperties::warpMeshStepWidth
int warpMeshStepWidth
Definition:
CameraProperties.hpp:164
dai::CameraProperties::imageOrientation
CameraImageOrientation imageOrientation
Definition:
CameraProperties.hpp:50
fps
static constexpr int fps
Definition:
rgb_depth_aligned.cpp:12
CameraBoardSocket.hpp
dai::CameraBoardSocket
CameraBoardSocket
Definition:
shared/depthai-shared/include/depthai-shared/common/CameraBoardSocket.hpp:9
dai::CameraProperties::ColorOrder::BGR
@ BGR
dai::CameraProperties::resolutionWidth
int32_t resolutionWidth
Definition:
CameraProperties.hpp:100
dai::CameraProperties::warpMeshSource
WarpMeshSource warpMeshSource
Definition:
CameraProperties.hpp:153
dai::CameraProperties::interleaved
bool interleaved
Definition:
CameraProperties.hpp:59
dai::CameraProperties::DEFAULT_PREVIEW_WIDTH
static constexpr uint32_t DEFAULT_PREVIEW_WIDTH
Definition:
CameraProperties.hpp:66
dai::CameraProperties::fp16
bool fp16
Definition:
CameraProperties.hpp:63
dai::CameraProperties::sensorType
CameraSensorType sensorType
Type of sensor, specifies what kind of postprocessing is performed.
Definition:
CameraProperties.hpp:138
dai::CameraProperties::calibAlpha
tl::optional< float > calibAlpha
Definition:
CameraProperties.hpp:163
dai::CameraImageOrientation::AUTO
@ AUTO
dai::CameraProperties::boardSocket
CameraBoardSocket boardSocket
Definition:
CameraProperties.hpp:40
dai::CameraProperties::initialControl
RawCameraControl initialControl
Definition:
CameraProperties.hpp:35
dai::CameraProperties::sensorCropX
float sensorCropX
Definition:
CameraProperties.hpp:124
dai::CameraProperties::WarpMeshSource::URI
@ URI
dai::CameraProperties::cameraName
std::string cameraName
Definition:
CameraProperties.hpp:45
dai::CameraProperties::colorOrder
ColorOrder colorOrder
Definition:
CameraProperties.hpp:55
dai::CameraProperties
Definition:
CameraProperties.hpp:15
dai::CameraProperties::sensorCropY
float sensorCropY
Definition:
CameraProperties.hpp:125
dai::CameraProperties::IspScale::vertDenominator
int32_t vertDenominator
Definition:
CameraProperties.hpp:22
dai::CameraProperties::WarpMeshSource::AUTO
@ AUTO
dai::CameraProperties::numFramesPoolVideo
int numFramesPoolVideo
Definition:
CameraProperties.hpp:145
dai::CameraProperties::warpMeshStepHeight
int warpMeshStepHeight
Definition:
CameraProperties.hpp:165
dai::CameraProperties::IspScale::horizNumerator
int32_t horizNumerator
Definition:
CameraProperties.hpp:19
dai::CameraProperties::IspScale::vertNumerator
int32_t vertNumerator
Definition:
CameraProperties.hpp:21
dai::CameraProperties::IspScale::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(IspScale, horizNumerator, horizDenominator, vertNumerator, vertDenominator)
CameraImageOrientation.hpp
dai::CameraProperties::numFramesPoolPreview
int numFramesPoolPreview
Definition:
CameraProperties.hpp:146
dai::CameraProperties::AUTO
static constexpr int AUTO
Definition:
CameraProperties.hpp:16
dai::CameraProperties::previewHeight
uint32_t previewHeight
Definition:
CameraProperties.hpp:71
dai::CameraProperties::isp3aFps
int isp3aFps
Definition:
CameraProperties.hpp:119
dai::CameraProperties::warpMeshUri
std::string warpMeshUri
Definition:
CameraProperties.hpp:154
dai::CameraProperties::videoWidth
int32_t videoWidth
Definition:
CameraProperties.hpp:80
tl::optional< float >
dai::CameraProperties::numFramesPoolIsp
int numFramesPoolIsp
Definition:
CameraProperties.hpp:144
dai::CameraProperties::warpMeshHeight
int warpMeshHeight
Definition:
CameraProperties.hpp:155
Properties.hpp
dai::CameraProperties::WarpMeshSource
WarpMeshSource
Definition:
CameraProperties.hpp:152
dai::CameraProperties::ispScale
IspScale ispScale
Definition:
CameraProperties.hpp:135
dai::CameraProperties::previewKeepAspectRatio
bool previewKeepAspectRatio
Definition:
CameraProperties.hpp:130
dai::CameraProperties::IspScale
Definition:
CameraProperties.hpp:18
dai::CameraProperties::videoHeight
int32_t videoHeight
Definition:
CameraProperties.hpp:85
dai::CameraProperties::numFramesPoolRaw
int numFramesPoolRaw
Definition:
CameraProperties.hpp:143
dai::CameraProperties::ColorOrder::RGB
@ RGB
dai::CameraProperties::WarpMeshSource::CALIBRATION
@ CALIBRATION
dai::PropertiesSerializable
Serializable properties.
Definition:
Properties.hpp:16
RawCameraControl.hpp
dai::CameraProperties::numFramesPoolStill
int numFramesPoolStill
Definition:
CameraProperties.hpp:147
dai::CameraProperties::ColorOrder
ColorOrder
Definition:
CameraProperties.hpp:30
dai::CameraProperties::fps
float fps
Definition:
CameraProperties.hpp:109
dai::CameraProperties::warpMeshWidth
int warpMeshWidth
Definition:
CameraProperties.hpp:155
dai::CameraProperties::stillHeight
int32_t stillHeight
Definition:
CameraProperties.hpp:95
dai
Definition:
CameraExposureOffset.hpp:6
dai::CameraProperties::rawPacked
tl::optional< bool > rawPacked
Definition:
CameraProperties.hpp:176
dai::CameraProperties::previewWidth
uint32_t previewWidth
Definition:
CameraProperties.hpp:75
CameraSensorType.hpp
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:18