|
@@ -136,7 +136,7 @@ void CnOsd::DrawLabel(cv::Mat image, const CNInferObjsPtr& objs_holder, std::vec
|
|
|
if (LabelIsFound(label_id)) {
|
|
|
color = colors_[label_id];
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// Draw Detection window
|
|
|
LOGD(OSD) << "Draw Bounding Box: "
|
|
|
<< "top_left: (" << top_left.x << "," << top_left.y << ") bottom_right:(" << bottom_right.x << ","
|
|
@@ -158,7 +158,7 @@ void CnOsd::DrawLabel(cv::Mat image, const CNInferObjsPtr& objs_holder, std::vec
|
|
|
LOGD(OSD) << "Draw Label and Score: " << text;
|
|
|
}
|
|
|
if(drawText) DrawText(image, bottom_left, text, color);
|
|
|
-
|
|
|
+
|
|
|
// draw secondary inference information
|
|
|
int label_bottom_y = 0;
|
|
|
int text_height = 0;
|