|
@@ -43,7 +43,7 @@ void DrawNode::work()
|
|
|
int x, y;
|
|
|
std::tie(x, y) = pm.selectOptimalPosition(pbox, image_width, image_height, box.label);
|
|
|
std::string text = str_format("%s %.2f", box.label.c_str(), box.score);
|
|
|
- cv::putText(image, box.label, cv::Point(x, y), cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(0, 255, 0), 2);
|
|
|
+ cv::putText(image, text, cv::Point(x, y), cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(0, 255, 0), 2);
|
|
|
}
|
|
|
metaData->draw_image = image;
|
|
|
for (auto& output_buffer : output_buffers_)
|