feat.完成基建技能目标检测

This commit is contained in:
MistEO
2021-10-16 21:42:33 +08:00
parent b36bde547a
commit bd6f771eca
9 changed files with 137 additions and 23 deletions

View File

@@ -3,6 +3,10 @@
asst::AbstractImageAnalyzer::AbstractImageAnalyzer(const cv::Mat& image, const Rect& roi)
: m_image(image),
m_roi(empty_rect_to_full(roi, image))
#ifdef LOG_TRACE
,
m_image_draw(image.clone())
#endif
{
;
}
@@ -11,6 +15,9 @@ void asst::AbstractImageAnalyzer::set_image(const cv::Mat& image, const Rect& ro
{
m_image = image;
m_roi = empty_rect_to_full(roi, image);
#ifdef LOG_TRACE
m_image_draw = image.clone();
#endif
}
void asst::AbstractImageAnalyzer::set_roi(const Rect& roi) noexcept