fix FilledRoundedRect render in annotation_render.cc

This commit is contained in:
aaaron7 2020-09-25 10:33:06 +08:00
parent 8f69af91fe
commit e948e25f32

View File

@ -266,8 +266,9 @@ void AnnotationRenderer::DrawFilledRoundedRectangle(
const int corner_radius =
annotation.rounded_rectangle().corner_radius() * scale_factor_;
const int line_type = annotation.rounded_rectangle().line_type();
const int thickness = round(annotation.thickness() * scale_factor_);
DrawRoundedRectangle(mat_image_, cv::Point(left, top),
cv::Point(right, bottom), color, -1, line_type,
cv::Point(right, bottom), color, thickness, line_type,
corner_radius);
}