Develop into master #9

Merged
SemvdH merged 126 commits from develop into main 2021-06-18 15:56:41 +00:00
2 changed files with 25 additions and 0 deletions
Showing only changes of commit 81dec3b9f4 - Show all commits

View File

@@ -0,0 +1,18 @@
#include "HandPresentChecker.h"
#include <opencv2/imgproc.hpp>
#include <iostream>
namespace computervision
{
bool check_if_hand_present(cv::Mat inputImage)
{
std::vector<std::vector<cv::Point>> points;
cv::Mat imgCont;
cv::findContours(inputImage, points, cv::RetrievalModes::RETR_LIST, cv::ContourApproximationModes::CHAIN_APPROX_SIMPLE);
bool hand_present = points.size() > 0;
std::cout << (hand_present ? "hey a hand!" : "damn no hand") << std::endl;
return hand_present;
}
}

View File

@@ -0,0 +1,7 @@
#pragma once
#include <opencv2/core.hpp>
namespace computervision
{
bool check_if_hand_present(cv::Mat inputImage);
}