[ADD] contour of hand in calibration screen

This commit is contained in:
Sem van der Hoeven
2021-06-08 11:03:22 +02:00
parent bb68d98bfe
commit afd3e00ddb
3 changed files with 18 additions and 5 deletions

View File

@@ -31,7 +31,15 @@ namespace computervision
*/
int getAmountOfFingers();
void DrawHandContours(Mat& image);
private:
int biggest_contour_index;
vector<vector<Point>> contours;
vector<Vec4i> hierarchy;
// colors to use
Scalar color_blue;
Scalar color_green;
@@ -115,5 +123,7 @@ namespace computervision
* @param with_numbers if the numbers should be drawn with the points
*/
void drawVectorPoints(Mat image, vector<Point> points, Scalar color, bool with_numbers);
};
}