[ADD] hand detection type enum

This commit is contained in:
Sem van der Hoeven
2021-06-08 13:38:47 +02:00
parent 1e55736615
commit cadee7d8e9
6 changed files with 53 additions and 48 deletions

View File

@@ -7,11 +7,19 @@ namespace computervision
{
namespace handcalibration
{
enum class HandDetectionType
{
MENU,
GAME
};
class HandCalibrator
{
public:
HandCalibrator();
/**
* @brief draws the text to show the status of the calibration on the image
*
@@ -45,7 +53,7 @@ namespace computervision
*
* @param input_image the input image to check.
*/
bool CheckIfHandPresent(cv::Mat input_image);
bool CheckIfHandPresent(cv::Mat input_image, HandDetectionType type);
/**
* @brief sets the amount of fingers that are currently detected.
@@ -53,6 +61,7 @@ namespace computervision
* @param amount the amount of fingers.
*/
void SetAmountOfFingers(int amount);
private:
bool background_calibrated;