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
RawImgDetections.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
depthai-shared/common/Point3f.hpp
"
4
#include "
depthai-shared/datatype/RawBuffer.hpp
"
5
#include "
depthai-shared/utility/Serialization.hpp
"
6
7
namespace
dai
{
8
10
struct
ImgDetection
{
11
uint32_t
label
= 0;
12
float
confidence
= 0.f;
13
float
xmin
= 0.f;
14
float
ymin
= 0.f;
15
float
xmax
= 0.f;
16
float
ymax
= 0.f;
17
};
18
19
DEPTHAI_SERIALIZE_EXT
(
ImgDetection
, label, confidence, xmin, ymin, xmax, ymax);
20
22
struct
RawImgDetections
:
public
RawBuffer
{
23
std::vector<ImgDetection>
detections
;
24
25
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const override
{
26
metadata =
utility::serialize
(*
this
);
27
datatype =
DatatypeEnum::ImgDetections
;
28
};
29
30
DatatypeEnum
getType
()
const override
{
31
return
DatatypeEnum::ImgDetections
;
32
}
33
34
DEPTHAI_SERIALIZE
(
RawImgDetections
,
detections
,
RawBuffer::sequenceNum
,
RawBuffer::ts
,
RawBuffer::tsDevice
);
35
};
36
37
}
// namespace dai
dai::ImgDetection::ymin
float ymin
Definition:
RawImgDetections.hpp:14
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::ImgDetection::xmin
float xmin
Definition:
RawImgDetections.hpp:13
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
dai::RawImgDetections::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition:
RawImgDetections.hpp:25
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition:
RawBuffer.hpp:16
dai::RawImgDetections::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawImgDetections, detections, RawBuffer::sequenceNum, RawBuffer::ts, RawBuffer::tsDevice)
dai::ImgDetection::ymax
float ymax
Definition:
RawImgDetections.hpp:16
dai::RawImgDetections::getType
DatatypeEnum getType() const override
Definition:
RawImgDetections.hpp:30
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition:
RawBuffer.hpp:18
RawBuffer.hpp
dai::RawImgDetections::detections
std::vector< ImgDetection > detections
Definition:
RawImgDetections.hpp:23
Serialization.hpp
dai::RawImgDetections
RawImgDetections structure.
Definition:
RawImgDetections.hpp:22
dai::DatatypeEnum::ImgDetections
@ ImgDetections
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::ImgDetection::xmax
float xmax
Definition:
RawImgDetections.hpp:15
dai::ImgDetection::label
uint32_t label
Definition:
RawImgDetections.hpp:11
dai
Definition:
CameraExposureOffset.hpp:6
dai::ImgDetection::confidence
float confidence
Definition:
RawImgDetections.hpp:12
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