Click here to Skip to main content
15,886,851 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I try to make face detection module. On below exmpe have load some stuuf to project using
int main(int argc, const char *argv[]) 

Alway it has only one parameter named /path64/debug/facedetece.exe
How add other resources to project. Plese help me
Thank you

What I have tried:

Face Recognition in Videos with OpenCV — OpenCV 3.0.0-dev documentation[^]
Posted
Updated 3-Jan-17 21:01pm

1 solution

You must pass the additional arguments on the command line when executing the program.

When using a command shell type:
/path64/debug/facedetece.exe </path/to/haar_cascade> </path/to/csv.ext> </path/to/device id>
replacing the argument place holders with your actual pathes and file names.

When using some kind of IDE (C++ development environment), check the documentation of that on how to specify these arguments in the project settings to be passed when starting the application from within the IDE.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900