From b80653b668185647abe452fbc430d22331983ff9 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 4 Jun 2021 15:07:36 +0200 Subject: [PATCH] [EDIT] change method names in compliance with code style guide --- src/computervision/HandPresentChecker.cpp | 5 ++--- src/computervision/HandPresentChecker.h | 8 +++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/computervision/HandPresentChecker.cpp b/src/computervision/HandPresentChecker.cpp index 74ec08d..31a9e00 100644 --- a/src/computervision/HandPresentChecker.cpp +++ b/src/computervision/HandPresentChecker.cpp @@ -6,11 +6,10 @@ namespace computervision { - bool check_if_hand_present(cv::Mat inputImage) + bool check_if_hand_present(cv::Mat input_image) { std::vector> points; - cv::Mat imgCont; - cv::findContours(inputImage, points, cv::RetrievalModes::RETR_LIST, cv::ContourApproximationModes::CHAIN_APPROX_SIMPLE); + cv::findContours(input_image, points, cv::RetrievalModes::RETR_LIST, cv::ContourApproximationModes::CHAIN_APPROX_SIMPLE); if (points.size() == 0) return false; diff --git a/src/computervision/HandPresentChecker.h b/src/computervision/HandPresentChecker.h index 5f0b0b7..6a6a8f3 100644 --- a/src/computervision/HandPresentChecker.h +++ b/src/computervision/HandPresentChecker.h @@ -3,5 +3,11 @@ #include namespace computervision { - bool check_if_hand_present(cv::Mat inputImage); + /** + * @brief checks if the hand is present in the input image. + * + * @param input_image the image to check + * @return true if the hand was found, false if not + */ + bool CheckIfHandPresent(cv::Mat input_image); }