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
RawNNData.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
depthai-shared/common/TensorInfo.hpp
"
4
#include "
depthai-shared/datatype/RawBuffer.hpp
"
5
#include "
depthai-shared/utility/Serialization.hpp
"
6
7
namespace
dai
{
8
10
struct
RawNNData
:
public
RawBuffer
{
11
// NNData data is in PoBuf
12
std::vector<TensorInfo>
tensors
;
13
unsigned
int
batchSize
;
14
15
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const override
{
16
metadata =
utility::serialize
(*
this
);
17
datatype =
DatatypeEnum::NNData
;
18
};
19
20
DatatypeEnum
getType
()
const override
{
21
return
DatatypeEnum::NNData
;
22
}
23
24
DEPTHAI_SERIALIZE
(
RawNNData
,
tensors
,
batchSize
,
RawBuffer::sequenceNum
,
RawBuffer::ts
,
RawBuffer::tsDevice
);
25
};
26
27
}
// namespace dai
dai::RawNNData::tensors
std::vector< TensorInfo > tensors
Definition:
RawNNData.hpp:12
dai::RawNNData::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition:
RawNNData.hpp:15
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition:
RawBuffer.hpp:16
dai::RawNNData::batchSize
unsigned int batchSize
Definition:
RawNNData.hpp:13
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition:
RawBuffer.hpp:18
RawBuffer.hpp
Serialization.hpp
dai::DatatypeEnum::NNData
@ NNData
dai::RawNNData::getType
DatatypeEnum getType() const override
Definition:
RawNNData.hpp:20
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai
Definition:
CameraExposureOffset.hpp:6
dai::RawNNData
RawNNData structure.
Definition:
RawNNData.hpp:10
TensorInfo.hpp
dai::RawNNData::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawNNData, tensors, batchSize, RawBuffer::sequenceNum, RawBuffer::ts, RawBuffer::tsDevice)
dai::RawBuffer::ts
Timestamp ts
Definition:
RawBuffer.hpp:17
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19