|
@@ -6,8 +6,10 @@
|
|
|
#include <map>
|
|
|
#include <iostream>
|
|
|
#include <memory>
|
|
|
+#include "opencv2/opencv.hpp"
|
|
|
#include "common/check.hpp"
|
|
|
|
|
|
+
|
|
|
namespace data
|
|
|
{
|
|
|
|
|
@@ -68,10 +70,12 @@ struct Box
|
|
|
: left(left), top(top), right(right), bottom(bottom), score(score), class_id(class_id), label(label) {}
|
|
|
Box(const Box& b) :
|
|
|
left(b.left), top(b.top), right(b.right), bottom(b.bottom), score(b.score),
|
|
|
- class_id(b.class_id), label(b.label), keypoints(b.keypoints) {}
|
|
|
- Box(const Box&& b) :
|
|
|
+ class_id(b.class_id), label(b.label), keypoints(b.keypoints),
|
|
|
+ seg_mask(b.seg_mask.clone()) {}
|
|
|
+ Box(Box&& b) noexcept :
|
|
|
left(b.left), top(b.top), right(b.right), bottom(b.bottom), score(b.score),
|
|
|
- class_id(b.class_id), label(b.label), keypoints(b.keypoints) {}
|
|
|
+ class_id(b.class_id), label(std::move(b.label)), keypoints(std::move(b.keypoints)),
|
|
|
+ seg_mask(std::move(b.seg_mask)) {}
|
|
|
Box& operator=(const Box& b)
|
|
|
{
|
|
|
left = b.left;
|