Skip to content

Commit a637e75

Browse files
committed
reduce line size in annotated images
1 parent abc051c commit a637e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ namespace banana {
308308
// rotate the center line back so that it fits on the image
309309
auto const rotated_center_line = this->RotateContour(center_line_points2i, result.estimated_center, -result.rotation_angle);
310310

311-
cv::polylines(draw_target, rotated_center_line, false, this->settings_.helper_annotation_color, 10);
311+
cv::polylines(draw_target, rotated_center_line, false, this->settings_.helper_annotation_color, 3);
312312
}
313313

314314
void Analyzer::PlotPCAResult(cv::Mat& draw_target, AnalysisResult const& result) const {
@@ -325,7 +325,7 @@ namespace banana {
325325
auto annotated_image = cv::Mat{image};
326326

327327
for (auto const& [n, result] : std::ranges::enumerate_view(analysis_result)) {
328-
cv::drawContours(annotated_image, std::vector{{result.contour}}, -1, this->settings_.contour_annotation_color, 10);
328+
cv::drawContours(annotated_image, std::vector{{result.contour}}, -1, this->settings_.contour_annotation_color, 3);
329329

330330
if (this->settings_.verbose_annotations) {
331331
cv::putText(annotated_image, std::to_string(n), result.estimated_center + cv::Point{35, -35}, cv::FONT_HERSHEY_COMPLEX_SMALL, 2, this->settings_.helper_annotation_color);

0 commit comments

Comments
 (0)