From bbbd57d6c1a407b73592201d4df637fb0e6bcdb7 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Wed, 1 Dec 2010 19:58:01 +0000 Subject: [PATCH] added an example call --- samples/c/facedetect.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/samples/c/facedetect.cpp b/samples/c/facedetect.cpp index 4fbe055e97..9e12eaa8fc 100644 --- a/samples/c/facedetect.cpp +++ b/samples/c/facedetect.cpp @@ -10,13 +10,16 @@ using namespace cv; void help() { - cout << "\n This program demonstrates the haar cascade recognizer\n" + cout << "\nThis program demonstrates the haar cascade recognizer\n" "this classifier can recognize many ~rigid objects, it's most known use is for faces.\n" "Usage:\n" - "./facedetect [--cascade=]\n" - " [--nested-cascade[=nested_cascade_path]]\n" - " [--scale=\n" - " [filename|camera_index]\n" << endl;; + "./facedetect [--cascade= this is the primary trained classifier such as frontal face]\n" + " [--nested-cascade[=nested_cascade_path this an optional secondary classifier such as eyes]]\n" + " [--scale=\n" + " [filename|camera_index]\n\n" + "see facedetect.cmd for one call:\n" + "./facedetect --cascade=\"../../data/haarcascades/haarcascade_frontalface_alt.xml\" --nested-cascade=\"../../data/haarcascades/haarcascade_eye.xml\" --scale=1.3 \n" + "Hit any key to quit.\n" << endl; } void detectAndDraw( Mat& img,