diff --git a/Image/BillDetection.h b/Image/BillDetection.h index 79d54bf..6c246c9 100644 --- a/Image/BillDetection.h +++ b/Image/BillDetection.h @@ -64,7 +64,8 @@ namespace Image { } } - /* we probably don't want a polygon all the time?! */ + // Approximate polygon + /* Question: we probably don't want a polygon all the time?! */ std::vector > contoursDraw (contoursArea.size()); for (int i = 0; i < contoursArea.size(); ++i){ cv::approxPolyDP(cv::Mat(contoursArea[i]), contoursDraw[i], 40, true); diff --git a/Image/Thresholding.h b/Image/Thresholding.h index 2551c78..4c6d3e3 100644 --- a/Image/Thresholding.h +++ b/Image/Thresholding.h @@ -63,7 +63,7 @@ namespace Image { sum = intImg[x2][y2] - intImg[x2][y1 - 1] - intImg[x1 - 1][y2] + intImg[x1 - 1][y1 - 1]; bgr = in.at(j, i); - brightness = (float) Image::ImageUtils::lightnessFromRgb(bgr[2], bgr[1], bgr[0]); + brightness = Image::ImageUtils::lightnessFromRgb(bgr[2], bgr[1], bgr[0]); color = brightness * count <= (sum * (100.0 - t) / 100.0) && brightness < 0.95 ? 0 : 255; diff --git a/Utils/MathUtils.h b/Utils/MathUtils.h index f05f5e2..18934c2 100644 --- a/Utils/MathUtils.h +++ b/Utils/MathUtils.h @@ -1,7 +1,7 @@ /** * Karaka * - * @package Image + * @package Utils * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0