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
datatype
RawSpatialImgDetections.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
RawImgDetections.hpp
"
4
#include "
depthai-shared/common/Point3f.hpp
"
5
#include "
depthai-shared/datatype/RawSpatialLocationCalculatorConfig.hpp
"
6
#include "
depthai-shared/utility/Serialization.hpp
"
7
8
namespace
dai
{
9
15
struct
SpatialImgDetection
:
public
ImgDetection
{
16
Point3f
spatialCoordinates
;
17
SpatialLocationCalculatorConfigData
boundingBoxMapping
;
18
};
19
20
DEPTHAI_SERIALIZE_EXT
(
SpatialImgDetection
, label, confidence, xmin, ymin, xmax, ymax, spatialCoordinates, boundingBoxMapping);
21
23
struct
RawSpatialImgDetections
:
public
RawBuffer
{
24
std::vector<SpatialImgDetection>
detections
;
25
26
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const override
{
27
metadata =
utility::serialize
(*
this
);
28
datatype =
DatatypeEnum::SpatialImgDetections
;
29
};
30
31
DatatypeEnum
getType
()
const override
{
32
return
DatatypeEnum::SpatialImgDetections
;
33
}
34
35
DEPTHAI_SERIALIZE
(
RawSpatialImgDetections
,
detections
,
RawBuffer::sequenceNum
,
RawBuffer::ts
,
RawBuffer::tsDevice
);
36
};
37
38
}
// namespace dai
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::RawSpatialImgDetections::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawSpatialImgDetections, detections, RawBuffer::sequenceNum, RawBuffer::ts, RawBuffer::tsDevice)
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
dai::RawSpatialImgDetections::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition:
RawSpatialImgDetections.hpp:26
dai::SpatialLocationCalculatorConfigData
SpatialLocation configuration data structure.
Definition:
RawSpatialLocationCalculatorConfig.hpp:39
dai::RawSpatialImgDetections::detections
std::vector< SpatialImgDetection > detections
Definition:
RawSpatialImgDetections.hpp:24
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition:
RawBuffer.hpp:16
dai::RawSpatialImgDetections::getType
DatatypeEnum getType() const override
Definition:
RawSpatialImgDetections.hpp:31
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition:
RawBuffer.hpp:18
RawSpatialLocationCalculatorConfig.hpp
Serialization.hpp
dai::RawSpatialImgDetections
RawSpatialImgDetections structure.
Definition:
RawSpatialImgDetections.hpp:23
RawImgDetections.hpp
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::Point3f
Definition:
Point3f.hpp:16
dai::SpatialImgDetection::spatialCoordinates
Point3f spatialCoordinates
Definition:
RawSpatialImgDetections.hpp:16
dai::SpatialImgDetection
Definition:
RawSpatialImgDetections.hpp:15
dai::SpatialImgDetection::boundingBoxMapping
SpatialLocationCalculatorConfigData boundingBoxMapping
Definition:
RawSpatialImgDetections.hpp:17
dai
Definition:
CameraExposureOffset.hpp:6
dai::DatatypeEnum::SpatialImgDetections
@ SpatialImgDetections
Point3f.hpp
dai::RawBuffer::ts
Timestamp ts
Definition:
RawBuffer.hpp:17
dai::ImgDetection
ImgDetection structure.
Definition:
RawImgDetections.hpp:10
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19