SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma_model_yolov5.h
Go to the documentation of this file.
1 #ifndef _MA_MODEL_YOLOV5_H
2 #define _MA_MODEL_YOLOV5_H
3 
4 #include <vector>
5 
6 #include "ma_model_detector.h"
7 
8 namespace ma::model {
9 
10 class YoloV5 : public Detector {
11 private:
12  ma_tensor_t output_;
13  int32_t num_record_;
14  int32_t num_element_;
15  int32_t num_class_;
16  enum {
17  INDEX_X = 0,
18  INDEX_Y = 1,
19  INDEX_W = 2,
20  INDEX_H = 3,
21  INDEX_S = 4,
22  INDEX_T = 5,
23  };
24 
25 protected:
26  ma_err_t postprocess() override;
29 
30 public:
31  YoloV5(Engine* engine);
32  ~YoloV5();
33  static bool isValid(Engine* engine);
34 };
35 
36 } // namespace ma::model
37 
38 #endif // _MA_MODEL_YOLO_H
Definition: ma_engine_base.h:17
Definition: ma_model_detector.h:12
Definition: ma_model_yolov5.h:10
YoloV5(Engine *engine)
Definition: ma_model_yolov5.cpp:14
ma_err_t generalPostProcess()
Definition: ma_model_yolov5.cpp:112
~YoloV5()
Definition: ma_model_yolov5.cpp:24
static bool isValid(Engine *engine)
Definition: ma_model_yolov5.cpp:98
ma_err_t postprocess() override
Definition: ma_model_yolov5.cpp:329
ma_err_t nmsPostProcess()
Definition: ma_model_yolov5.cpp:210
ma_err_t
Definition: ma_types.h:21
Definition: ma_model_classifier.cpp:5
Definition: ma_types.h:74