[EDIT] change method names in compliance with code style guide
This commit is contained in:
@@ -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<std::vector<cv::Point>> 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;
|
||||
|
||||
|
||||
@@ -3,5 +3,11 @@
|
||||
#include <opencv2/core.hpp>
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user