Don't allow gaps in the tape and fix goal size
We were having cases where the 5 points in the polyline were being
matched to 3 tape segments. This was returning results reporting
significantly further than the actual distance. Compress any gaps in
the tape numbers. This drives our solution much more to be based off
tape distance centers.
Change-Id: I9c60315fdd903ebd9400a95f7b276eb37b63438c
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2022/vision/viewer.cc b/y2022/vision/viewer.cc
index afca4cb..a21c09f 100644
--- a/y2022/vision/viewer.cc
+++ b/y2022/vision/viewer.cc
@@ -279,8 +279,10 @@
FLAGS_display_estimation ? std::make_optional(ret_image)
: std::nullopt);
estimator.DrawEstimate(ret_image);
+ LOG(INFO) << "Read file " << (it - file_list.begin()) << ": " << *it;
}
+
cv::imshow("image", image_mat);
cv::imshow("mask", blob_result.binarized_image);
cv::imshow("blobs", ret_image);