This commit is contained in:
Dennis Eichhorn 2022-09-06 10:12:41 +02:00
parent bad0b9c3e0
commit 40efcb8a66
3 changed files with 4 additions and 3 deletions

View File

@ -63,6 +63,7 @@ namespace Image {
// Approximate polygon // Approximate polygon
/* Question: we probably don't want a polygon all the time?! */ /* Question: we probably don't want a polygon all the time?! */
// @todo bad implementation, focus on single square
std::vector<std::vector<cv::Point> > contoursDraw (contoursArea.size()); std::vector<std::vector<cv::Point> > contoursDraw (contoursArea.size());
for (int i = 0; i < contoursArea.size(); ++i){ for (int i = 0; i < contoursArea.size(); ++i){
cv::approxPolyDP(cv::Mat(contoursArea[i]), contoursDraw[i], 40, true); cv::approxPolyDP(cv::Mat(contoursArea[i]), contoursDraw[i], 40, true);