i trying run face detection code in opencv , don't want use command prompt run don't know give input argument load_object_detect. here sample code:
cvhaarclassifiercascade* cascade = load_object_detector(argv[2]);
in order above command execute code should run command prompt trying avoid now...
all know input type const char* cascade_path...
try argv[2] = whatever path want put;
before calling function
something
#include<iostream> using namespace std; int main(int argc , char *argv[]) { argv[2] = "suvp"; std::cout<<"hey "<<argv[2]<<endl; return 0; }
the output hey suvp
the arguments command line stored in array argv. alternatively filling data in array within code , not command line in case.
Comments
Post a Comment