[EDIT] change method names in compliance with code style guide

This commit is contained in:
Sem van der Hoeven
2021-06-04 15:07:36 +02:00
parent ca2959bf2d
commit b80653b668
2 changed files with 9 additions and 4 deletions

View File

@@ -6,11 +6,10 @@
namespace computervision namespace computervision
{ {
bool check_if_hand_present(cv::Mat inputImage) bool check_if_hand_present(cv::Mat input_image)
{ {
std::vector<std::vector<cv::Point>> points; std::vector<std::vector<cv::Point>> points;
cv::Mat imgCont; cv::findContours(input_image, points, cv::RetrievalModes::RETR_LIST, cv::ContourApproximationModes::CHAIN_APPROX_SIMPLE);
cv::findContours(inputImage, points, cv::RetrievalModes::RETR_LIST, cv::ContourApproximationModes::CHAIN_APPROX_SIMPLE);
if (points.size() == 0) return false; if (points.size() == 0) return false;

View File

@@ -3,5 +3,11 @@
#include <opencv2/core.hpp> #include <opencv2/core.hpp>
namespace computervision 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);
} }