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); }