未指定的错误找不到writer [英] Unspecified error could not find a writer

查看:220
本文介绍了未指定的错误找不到writer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从



命令行参数





路径

  //命令行选项
printf (长期权的强制性参数对于短期期权也是强制性的。
printf(-i,--input = PATH设置输入图像的路径\\\
);
printf((* .jpg,* .png等)\\\
);
printf(-o,--output = PATH设置输出图像的路径\\\
);
printf((* .jpg,* .png等)\\\
);
printf(-m,--minsize = SIZE设置an \\\
的最小大小(以像素为单位));
printf(object(default is 128)\\\
);
printf(-M,--maxsize = SIZE设置an \\\
的最大大小(以像素为单位));
printf(object(default is 1024)\\\
);
printf(-a,--angle = ANGLE cascade rotation angle:\\\
);
printf(0.0是0弧度,1.0是2 * pi弧度\\\
);
printf((default is 0.0)\\\
);
printf(-q,-qthreshold = THRESH检测质量阈值(> = 0.0):\\\
);
printf(all detections with estimated quality\\\
);
printf(低于此阈值将被丢弃\\\
);
printf((default is 5.0)\\\
);
printf(-c,--scalefactor = SCALE在\\\
期间重新缩放窗口的大小);
printf(multiscale detection process(default is 1.1)\\\
);
printf(-t,--stridefactor = STRIDE多少移动窗口在adjacent\\\
之间);
printf(detections(default is 0.1,ie,10 %%)\\\
);
printf(-u,--usepyr打开粗图像金字塔支持\\\
);
printf(-n,--noclustering关闭检测聚类\\\
);
printf(-v,--verbose检测进程的打印详细信息\\\
);
printf(to`stdout`\\\
);

//
printf(退出状态:\\\
);
printf(0如果OK,\\\
);
printf(1如果麻烦(例如,输入图像的无效路径).\\\
);

我的整体参数

  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 


解决方案

OpenCV 无法找到写入者将图片写入磁盘,因为您未在 -o 选项。



使用 -o path_to_image 保存输出图像,例如:

  -o E:\\img.jpg 


I am trying to run and check a sample program from here and executing its sample.c. I am giving its argument, first is the path to facefinder, second is input image, third is output image and so on. But when i give all the paths, it show me following error and close. I am using Visual studio 2015 and opencv 2.4.10

Error:

Command line argument

Paths

// 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");

my overall argument

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

解决方案

OpenCV could not find a writer to write the image to disk because you didn't specify an image path in the -o option.

Use -o path_to_image to save the output image, e.g.:

-o E:\\img.jpg

这篇关于未指定的错误找不到writer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆