nndeploy C++ API  0.2.0
nndeploy C++ API
vis_mot.h
Go to the documentation of this file.
1 #ifndef _NNDEPLOY_TRACK_VISUALIZE_MOT_H_
2 #define _NNDEPLOY_TRACK_VISUALIZE_MOT_H_
3 
4 #include "nndeploy/base/any.h"
5 #include "nndeploy/base/common.h"
7 #include "nndeploy/base/log.h"
8 #include "nndeploy/base/macro.h"
9 #include "nndeploy/base/object.h"
10 #include "nndeploy/base/param.h"
11 #include "nndeploy/base/status.h"
12 #include "nndeploy/base/string.h"
13 #include "nndeploy/base/type.h"
14 #include "nndeploy/dag/edge.h"
15 #include "nndeploy/dag/node.h"
16 #include "nndeploy/device/buffer.h"
17 #include "nndeploy/device/device.h"
19 #include "nndeploy/device/tensor.h"
20 #include "nndeploy/track/result.h"
21 
22 namespace nndeploy {
23 namespace track {
24 
26  public:
27  VisMOT(const std::string &name) : Node(name) {
28  key_ = "nndeploy::track::VisMOT";
29  desc_ =
30  "Draw MOT result on input cv::Mat image based on MOT results[cv::Mat->cv::Mat]";
31  this->setInputTypeInfo<cv::Mat>();
32  this->setInputTypeInfo<MOTResult>();
33  this->setOutputTypeInfo<cv::Mat>();
34  }
35  VisMOT(const std::string &name, std::vector<dag::Edge *> inputs,
36  std::vector<dag::Edge *> outputs)
37  : Node(name, inputs, outputs) {
38  key_ = "nndeploy::track::VisMOT";
39  desc_ =
40  "Draw MOT result on input cv::Mat image based on MOT results[cv::Mat->cv::Mat]";
41  this->setInputTypeInfo<cv::Mat>();
42  this->setInputTypeInfo<MOTResult>();
43  this->setOutputTypeInfo<cv::Mat>();
44  }
45  virtual ~VisMOT() {}
46 
47  virtual base::Status run();
48 
49  cv::Scalar GetMOTBoxColor(int idx);
50 };
51 
52 } // namespace track
53 } // namespace nndeploy
54 
55 #endif
Node base class.
Definition: node.h:171
virtual base::Status run()
Run node (pure virtual function)
cv::Scalar GetMOTBoxColor(int idx)
VisMOT(const std::string &name)
Definition: vis_mot.h:27
VisMOT(const std::string &name, std::vector< dag::Edge * > inputs, std::vector< dag::Edge * > outputs)
Definition: vis_mot.h:35
#define NNDEPLOY_CC_API
api
Definition: macro.h:29