Skip to content
Snippets Groups Projects
Commit 0a7cafdd authored by Noah Eigenfeld's avatar Noah Eigenfeld
Browse files

Added predicted name overlay

parent de40fe29
No related branches found
No related tags found
No related merge requests found
...@@ -213,7 +213,8 @@ int main() { ...@@ -213,7 +213,8 @@ int main() {
//Add instructions to the screen //Add instructions to the screen
Mat picture_with_text = picture.clone(); Mat picture_with_text = picture.clone();
putText(picture_with_text, "Press 's' to save", Point2f(375,100), FONT_HERSHEY_SIMPLEX, 2.0, Scalar(255,0,0,0), 3); putText(picture_with_text, "Press 's' to save", Point2f(375,100), FONT_HERSHEY_SIMPLEX, 2.0, Scalar(255,0,0,0), 3);
putText(picture_with_text, "Press ESC/Spacebar to return", Point2f(160,600), FONT_HERSHEY_SIMPLEX, 2.0, Scalar(0,0,255), 3); putText(picture_with_text, "Predicted User: " + users[eigen_predictedLabel], Point2f(275,600), FONT_HERSHEY_SIMPLEX, 2.0, Scalar(255,0,0,0), 3);
putText(picture_with_text, "Press ESC/Spacebar to return", Point2f(160,670), FONT_HERSHEY_SIMPLEX, 2.0, Scalar(0,0,255), 3);
imshow("Webcam", picture_with_text); imshow("Webcam", picture_with_text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment