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);
이 코드, 오류없이 코드를 실행하지만, 항상 여기 반환 0프로그램 항상 변수는 argv에 0 반환 [0]
printf("Use:\n\t%s image\n",argv[0]);
return 0;
의 공정에있다 이미지를 못하고 왜
편집 내가 그것을 줄 처리 할 수있는 내 폴더 테스트를 제공하는 경우 다음과 같은
런타임 오류 :>.\test
테스트 폴더 이미지
그것은 argv와 <이 실행 그것이 다른 조건, 난 고토 구성 설정을 실행하는 것이 의미
새로운 C로 ++ 및 VS
프로그램을 어떻게 실행합니까? – NPE
어떻게이 프로그램을 실행합니까? – 4pie0
Visual Studio를 통해 f5를 누름 – Rocket