[FIX] detecting hand when its just a finger or hair

This commit is contained in:
Sem van der Hoeven
2021-06-04 14:48:19 +02:00
parent 81dec3b9f4
commit ca2959bf2d
4 changed files with 19 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
#include <map>
#include "startup_Scene.h"
#include "../computervision/ObjectDetection.h"
#include <iostream>
namespace scene
{
@@ -29,7 +30,9 @@ namespace scene
void scene::Startup_Scene::update(GLFWwindow* window)
{
objDetect.detectHand(objDetect.readCamera());
bool hand_detected = false;
objDetect.detectHand(objDetect.readCamera(),hand_detected);
if (hand_detected) std::cout << "there's a hand!" << std::endl;
}