[EDIT] improve hand detection with mask

This commit is contained in:
Sem van der Hoeven
2021-05-25 14:19:18 +02:00
parent 276aa1a449
commit 3696e2eb30
4 changed files with 126 additions and 61 deletions

View File

@@ -61,6 +61,21 @@ namespace computervision
*/
cv::Mat readCamera();
/**
* @brief detects a hand based on the given hand mask input frame.
*
* @param inputFrame the input frame with only the hand
* @return true if the webcam is connected, false if not.
*/
bool detectHand(cv::Mat inputFrame);
/**
* @brief draws the hand mask rectangle on the given input matrix.
*
* @param input the input matrix to draw the rectangle on
*/
bool drawHandMaskRect(cv::Mat *input);
};