[ADD] start of multiple squares

This commit is contained in:
Sem van der Hoeven
2021-06-08 11:54:48 +02:00
parent afd3e00ddb
commit ef470bd4f1
6 changed files with 85 additions and 11 deletions

View File

@@ -62,8 +62,9 @@ namespace computervision
// draw the hand rectangle on the camera input, and draw text showing if the hand is open or closed.
DrawHandMask(&camera_frame);
string hand_text = fingers_amount > 0 ? "open" : "closed";
putText(camera_frame, hand_text, Point(10, 75), FONT_HERSHEY_PLAIN, 2.0, Scalar(255, 0, 255), 3);
hand_calibrator.SetAmountOfFingers(fingers_amount);
finger_count.DrawHandContours(camera_frame);
hand_calibrator.DrawHandCalibrationText(camera_frame);
imshow("camera", camera_frame);