|
Re: Re: facedetect.c: msg#00736lib.opencv
Thanks a lot...you have been very helpness for me.... thanks again cegparamesh <cegparamesh@xxxxxxxxx> ha scritto: Ok. Here is a simple change in the source code: In the 34th line: Make your input name equal to the picture file. const char* input_name = "face.jpeg"; Else, make it equal to 0. const char* input_name = 0; Then remove the If-Else statement following that. Like this: ===================================================================== /* if( argc > 1 && strncmp( argv[1], "--cascade=", optlen ) == 0 ) { cascade_name = argv[1] + optlen; input_name = argc > 2 ? argv[2] : 0; } else { fprintf( stderr, "Usage: facedetect --cascade=\"<cascade_path>\" [filename|camera_index]\n" ); return -1; /*input_name = argc > 1 ? argv[1] : 0;*/ //} ===================================================================== After this, you have to copy the file: haarcascade_frontalface_alt.xml to the current directory of your application. THIS is very very important. Now, the you can compile and execute, and it will work well. Regards, :D Paramesh. --- In OpenCV@xxxxxxxxxxxxxxx, simona fabbro <simyrm03@xxxx> wrote: > > Hi all, > I want to use facedect.c source code in my application but when I run my programme : > > "Usage: facedetect --cascade=\"<cascade_path>\" [filename|camera_index]\n" ); > > How I solve this problem?? > > thanks a lot > > > --------------------------------- > Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive > > [Non-text portions of this message have been removed] > Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx --------------------------------- YAHOO! GROUPS LINKS Visit your group "OpenCV" on the web. To unsubscribe from this group, send an email to: OpenCV-unsubscribe@xxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- --------------------------------- Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3 [Non-text portions of this message have been removed] Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Surface defects detection - Ideas?: 00736, Luiz Curado |
|---|---|
| Next by Date: | Re: can we use a simple usb webcam with opencv: 00736, Giff |
| Previous by Thread: | Re: facedetect.ci: 00736, cegparamesh |
| Next by Thread: | Noobie! - Urgent help required for 2 camera, camshift image analysis program: 00736, siddus19 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |