Skip to content

Commit d92f838

Browse files
Update demos/object_detection_demo/cpp/main.cpp
Co-authored-by: Ivan Vikhrev <[email protected]>
1 parent 32909fc commit d92f838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/object_detection_demo/cpp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ cv::Mat renderDetectionData(DetectionResult& result, const ColorPalette& palette
265265
std::ostringstream conf;
266266
conf << ":" << std::fixed << std::setprecision(1) << obj.confidence * 100 << '%';
267267
const auto& color = palette[obj.labelID];
268-
cv::putText(outputImg, obj.label + conf.str(),
269-
cv::Point2f(obj.x, obj.y - 5), cv::FONT_HERSHEY_COMPLEX_SMALL, 1, color);
268+
putHighlightedText(outputImg, obj.label + conf.str(),
269+
cv::Point2f(obj.x, obj.y - 5), cv::FONT_HERSHEY_COMPLEX_SMALL, 1, color, 2);
270270
cv::rectangle(outputImg, obj, color, 2);
271271
}
272272

0 commit comments

Comments
 (0)