From 40efcb8a665808139f3ee33bf49d85fa2a5b967f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 6 Sep 2022 10:12:41 +0200 Subject: [PATCH] cs fixes --- Image/BillDetection.h | 1 + Utils/ArrayUtils.h | 4 ++-- Utils/StringUtils.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Image/BillDetection.h b/Image/BillDetection.h index 4907cf9..2b2d6a5 100644 --- a/Image/BillDetection.h +++ b/Image/BillDetection.h @@ -63,6 +63,7 @@ namespace Image { // Approximate polygon /* Question: we probably don't want a polygon all the time?! */ + // @todo bad implementation, focus on single square 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/Utils/ArrayUtils.h b/Utils/ArrayUtils.h index 5e11290..e8f21cf 100644 --- a/Utils/ArrayUtils.h +++ b/Utils/ArrayUtils.h @@ -22,7 +22,7 @@ namespace Utils { public: static inline - char* get_arg (const char *id, char **argv, int length) + char* get_arg(const char *id, char **argv, int length) { if (Utils::StringUtils::is_number(id)) { return argv[atoi(id)]; @@ -38,7 +38,7 @@ namespace Utils { } static inline - bool has_arg (const char *id, char **argv, int length) + bool has_arg(const char *id, char **argv, int length) { for (int i = 0; i < length; ++i) { if (strcmp(id, argv[i]) == 0) { diff --git a/Utils/StringUtils.h b/Utils/StringUtils.h index c4de89e..0fc159b 100644 --- a/Utils/StringUtils.h +++ b/Utils/StringUtils.h @@ -19,7 +19,7 @@ namespace Utils { public: static inline - bool is_number (const char *s) + bool is_number(const char *s) { while (*s != '\0') { if (!isdigit(*s)) {