|
@@ -34,9 +34,9 @@ void DrawNode::work()
|
|
|
{
|
|
|
cv::rectangle(image, cv::Point(box.left, box.top), cv::Point(box.right, box.bottom), cv::Scalar(0, 255, 0), 2);
|
|
|
|
|
|
- std::tuple<int, int, int, int> box = std::make_tuple(box.left, box.top, box.right, box.bottom);
|
|
|
+ std::tuple<int, int, int, int> pbox = std::make_tuple(box.left, box.top, box.right, box.bottom);
|
|
|
int x, y;
|
|
|
- std::tie(x, y) = pm.selectOptimalPosition(box, 1920, 1080, box.label);
|
|
|
+ std::tie(x, y) = pm.selectOptimalPosition(pbox, 1920, 1080, box.label);
|
|
|
cv::putText(image, box.label, cv::Point(x, y), cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(0, 255, 0), 2);
|
|
|
}
|
|
|
metaData->draw_image = image;
|