nndeploy C++ API  0.2.0
nndeploy C++ API
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"
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"
18 #include "nndeploy/device/tensor.h"
19 
20 namespace nndeploy {
21 namespace detect {
22 
28  public:
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 
44  public:
46  virtual ~DetectResult(){};
47  std::vector<DetectBBoxResult> bboxs_;
48 };
49 
50 } // namespace detect
51 } // namespace nndeploy
52 
53 #endif /* _NNDEPLOY_DETECT_DETECT_RESULT_H_ */
std::array< float, 4 > bbox_
Definition: result.h:39
std::vector< DetectBBoxResult > bboxs_
Definition: result.h:46
Tensorē±»
Definition: tensor.h:26
#define NNDEPLOY_CC_API
api
Definition: macro.h:29