From e70d2ef19dbead7631e0b427f3c5007662c5bde3 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 4 Jun 2021 16:32:30 +0200 Subject: [PATCH] [EDIT] removed unused hand stuff --- src/computervision/ObjectDetection.cpp | 9 ++++----- .../calibration/HandPresentChecker.cpp | 14 -------------- .../calibration/HandPresentChecker.h | 13 ------------- wk2_fps.vcxproj | 2 -- wk2_fps.vcxproj.filters | 2 -- 5 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 src/computervision/calibration/HandPresentChecker.cpp delete mode 100644 src/computervision/calibration/HandPresentChecker.h diff --git a/src/computervision/ObjectDetection.cpp b/src/computervision/ObjectDetection.cpp index 669a229..ba8030d 100644 --- a/src/computervision/ObjectDetection.cpp +++ b/src/computervision/ObjectDetection.cpp @@ -8,7 +8,6 @@ #include "SkinDetector.h" #include "FingerCount.h" #include "async/StaticCameraInstance.h" -#include "calibration/HandPresentChecker.h" #include "calibration/HandCalibrator.h" namespace computervision @@ -69,10 +68,10 @@ namespace computervision hand_calibrator.DrawHandCalibrationText(camera_frame); imshow("camera", camera_frame); - //imshow("output", frame_out); - //imshow("foreground", foreground); - //imshow("handMask", handMask); - //imshow("handDetection", fingerCountDebug); + /*imshow("output", frame_out); + imshow("foreground", foreground); + imshow("handMask", handMask); + imshow("handDetection", fingerCountDebug);*/ hand_present = hand_calibrator.CheckIfHandPresent(handMask); hand_calibrator.SetHandPresent(hand_present); diff --git a/src/computervision/calibration/HandPresentChecker.cpp b/src/computervision/calibration/HandPresentChecker.cpp deleted file mode 100644 index 194f6c9..0000000 --- a/src/computervision/calibration/HandPresentChecker.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "HandPresentChecker.h" -#include -#include - - - -namespace computervision -{ - namespace handcalibration - { - - } - -} diff --git a/src/computervision/calibration/HandPresentChecker.h b/src/computervision/calibration/HandPresentChecker.h deleted file mode 100644 index 6a6a8f3..0000000 --- a/src/computervision/calibration/HandPresentChecker.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#include -namespace computervision -{ - /** - * @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); -} diff --git a/wk2_fps.vcxproj b/wk2_fps.vcxproj index ba853d9..9658b78 100644 --- a/wk2_fps.vcxproj +++ b/wk2_fps.vcxproj @@ -21,7 +21,6 @@ - @@ -47,7 +46,6 @@ - diff --git a/wk2_fps.vcxproj.filters b/wk2_fps.vcxproj.filters index 129165a..de921ef 100644 --- a/wk2_fps.vcxproj.filters +++ b/wk2_fps.vcxproj.filters @@ -22,7 +22,6 @@ - @@ -54,7 +53,6 @@ -