nndeploy C++ API
0.2.0
nndeploy C++ API
plugin
include
nndeploy
detect
result.h
Go to the documentation of this file.
1
2
#ifndef _NNDEPLOY_DETECT_DETECT_RESULT_H_
3
#define _NNDEPLOY_DETECT_DETECT_RESULT_H_
4
5
#include "
nndeploy/base/any.h
"
6
#include "
nndeploy/base/common.h
"
7
#include "
nndeploy/base/glic_stl_include.h
"
8
#include "
nndeploy/base/log.h
"
9
#include "
nndeploy/base/macro.h
"
10
#include "
nndeploy/base/object.h
"
11
#include "
nndeploy/base/param.h
"
12
#include "
nndeploy/base/status.h
"
13
#include "
nndeploy/base/string.h
"
14
#include "
nndeploy/base/type.h
"
15
#include "
nndeploy/device/buffer.h
"
16
#include "
nndeploy/device/device.h
"
17
#include "
nndeploy/device/memory_pool.h
"
18
#include "
nndeploy/device/tensor.h
"
19
20
namespace
nndeploy
{
21
namespace
detect {
22
27
class
NNDEPLOY_CC_API
DetectBBoxResult
:
public
base::Param
{
28
public
:
29
DetectBBoxResult
(){};
30
virtual
~DetectBBoxResult
() {
31
if
(mask_ !=
nullptr
) {
32
delete
mask_;
33
mask_ =
nullptr
;
34
}
35
};
36
int
index_
;
37
int
label_id_
;
38
float
score_
;
39
std::array<float, 4>
bbox_
;
// xmin, ymin, xmax, ymax
40
device::Tensor
*mask_ =
nullptr
;
41
};
42
43
class
NNDEPLOY_CC_API
DetectResult
:
public
base::Param
{
44
public
:
45
DetectResult
(){};
46
virtual
~DetectResult
(){};
47
std::vector<DetectBBoxResult>
bboxs_
;
48
};
49
50
}
// namespace detect
51
}
// namespace nndeploy
52
53
#endif
/* _NNDEPLOY_DETECT_DETECT_RESULT_H_ */
any.h
buffer.h
nndeploy::base::Param
Definition:
param.h:37
nndeploy::detect::DetectBBoxResult
Detect Result.
Definition:
result.h:27
nndeploy::detect::DetectBBoxResult::bbox_
std::array< float, 4 > bbox_
Definition:
result.h:39
nndeploy::detect::DetectBBoxResult::label_id_
int label_id_
Definition:
result.h:37
nndeploy::detect::DetectBBoxResult::score_
float score_
Definition:
result.h:38
nndeploy::detect::DetectBBoxResult::~DetectBBoxResult
virtual ~DetectBBoxResult()
Definition:
result.h:30
nndeploy::detect::DetectBBoxResult::DetectBBoxResult
DetectBBoxResult()
Definition:
result.h:29
nndeploy::detect::DetectBBoxResult::index_
int index_
Definition:
result.h:35
nndeploy::detect::DetectResult
Definition:
result.h:43
nndeploy::detect::DetectResult::~DetectResult
virtual ~DetectResult()
Definition:
result.h:46
nndeploy::detect::DetectResult::DetectResult
DetectResult()
Definition:
result.h:45
nndeploy::detect::DetectResult::bboxs_
std::vector< DetectBBoxResult > bboxs_
Definition:
result.h:46
nndeploy::device::Tensor
Tensorē±»
Definition:
tensor.h:26
common.h
device.h
type.h
glic_stl_include.h
log.h
macro.h
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
memory_pool.h
nndeploy
Definition:
common.h:10
object.h
param.h
status.h
string.h
tensor.h
Generated by
1.9.1