int main ( int argc, char** argv )
{
cout << "OpenCV Automatic Number Plate Recognition\n";
char* filename;
Mat input_image;
//Check if user specify image to process
if(argc >= 2 )
{
filename= argv[1];
//load image in gray level
input_image=imread(filename,1);
}else{
printf("Use:\n\t%s image\n",argv[0]);
return 0;
}
string filename_whithoutExt=getFilename(filename);
This is code , the code run without error , but always go here and return 0
printf("Use:\n\t%s image\n",argv[0]);
return 0;
Why its not getting the images which are there to process
Edit
When i give the my folder test to process it give the following runtime error :
It run with the argv < 2 mean that it run the else condition , when i goto the configuration setting -> debugging -> commandline argument -> .\test
test folder contain images
New to C++ and VS