Я пытаюсь запустить и проверить образец программы с here и выполнить его sample.c. Я даю свой аргумент, сначала это путь к лицевому счету, второй - входное изображение, третье - выходное изображение и т. Д. Но когда я даю все пути, он показывает мне следующую ошибку и близкую. Я использую Visual Studio 2015 и OpenCV 2.4.10Unspecified error не удалось найти писателя
Ошибка:
аргумент командной строки
Дорожки
// command line options
printf("Mandatory arguments to long options are mandatory for short options too.\n");
printf(" -i, --input=PATH set the path to the input image\n");
printf(" (*.jpg, *.png, etc.)\n");
printf(" -o, --output=PATH set the path to the output image\n");
printf(" (*.jpg, *.png, etc.)\n");
printf(" -m, --minsize=SIZE sets the minimum size (in pixels) of an\n");
printf(" object (default is 128)\n");
printf(" -M, --maxsize=SIZE sets the maximum size (in pixels) of an\n");
printf(" object (default is 1024)\n");
printf(" -a, --angle=ANGLE cascade rotation angle:\n");
printf(" 0.0 is 0 radians and 1.0 is 2*pi radians\n");
printf(" (default is 0.0)\n");
printf(" -q, --qthreshold=THRESH detection quality threshold (>=0.0):\n");
printf(" all detections with estimated quality\n");
printf(" below this threshold will be discarded\n");
printf(" (default is 5.0)\n");
printf(" -c, --scalefactor=SCALE how much to rescale the window during the\n");
printf(" multiscale detection process (default is 1.1)\n");
printf(" -t, --stridefactor=STRIDE how much to move the window between neighboring\n");
printf(" detections (default is 0.1, i.e., 10%%)\n");
printf(" -u, --usepyr turns on the coarse image pyramid support\n");
printf(" -n, --noclustering turns off detection clustering\n");
printf(" -v, --verbose print details of the detection process\n");
printf(" to `stdout`\n");
//
printf("Exit status:\n");
printf(" 0 if OK,\n");
printf(" 1 if trouble (e.g., invalid path to input image).\n");
мой общий аргумент
E:\\pico-master\\rnt\\cascades\\facefinder -i E:\\1.jpg -o E:\\ -m 128 -M 1024 -a 0.0 -q 5.0 -c 1.1 -t 0.1
Можете ли вы показать свой '-o' выходной путь? Кажется, что вы даете недопустимое расширение изображения. – Miki
Я обновляю вопрос –
Вы должны указать выходное изображение: «-o E: \\ img.jpg» и т. Д. – Miki