Skip to content

Commit 578fdf9

Browse files
authored
Merge pull request #107 from AutoModality/GV-3399/cpp-port
feat: detection strcuture
2 parents 52245f5 + c0627eb commit 578fdf9

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

include/am_utils/am_detection.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#ifndef AM_UTILS_AM_DETECTION_H_
2+
#define AM_UTILS_AM_DETECTION_H_
3+
4+
#include <string>
5+
#include <opencv2/opencv.hpp>
6+
7+
namespace am
8+
{
9+
struct Detection
10+
{
11+
12+
int class_id_{0};
13+
std::string class_name_;
14+
double confidence{0.0};
15+
cv::Scalar color{};
16+
cv::Rect box{};
17+
};
18+
}
19+
20+
#endif /*AM_UTILS_AM_DETECTION_H_*/

src/am_utils/am_detection.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <am_utils/am_detection.h>
2+
3+
namespace
4+
{
5+
6+
}

0 commit comments

Comments
 (0)