Skip to content

Commit

Permalink
Video example updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Wagner committed Jun 24, 2012
1 parent 3a97cbc commit 207d9ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion samples/facerec_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ int main(int argc, const char *argv[]) {
// and now put it into the image:
putText(original, box_text, Point(pos_x, pos_y), FONT_HERSHEY_PLAIN, 2.0, CV_RGB(0, 255,0), 3, 8, false);
}
// Show the result:
imshow("face_recognizer", original);
// Exit the loop on Escape:
// And display it:
char key = (char) waitKey(20);
// Exit this loop on escape:
if(key == 27)
break;
}
Expand Down

0 comments on commit 207d9ac

Please sign in to comment.