如何在opencv上加载图像 [英] How load images on opencv

查看:106
本文介绍了如何在opencv上加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试制作人脸检测模块。在下面的exmpe上加载一些stuuf项目使用

I try to make face detection module. On below exmpe have load some stuuf to project using

int main(int argc, const char *argv[]) 



Alway它只有一个名为/path64/debug/facedetece.exe的参数

如何将其他资源添加到项目中。请帮助我

谢谢



我尝试过:



OpenCV视频中的人脸识别 - OpenCV 3.0 .0-dev文档 [ ^ ]

推荐答案

执行程序时,必须在命令行上传递其他参数。



使用命令shell类型时:

You must pass the additional arguments on the command line when executing the program.

When using a command shell type:
/path64/debug/facedetece.exe </path/to/haar_cascade> </path/to/csv.ext> </path/to/device id>

将参数占位符替换为您的实际路径和文件名。



使用某种时候在IDE(C ++开发环境)中,检查有关如何在IDE中启动应用程序时要传递的项目设置中指定这些参数的文档。

replacing the argument place holders with your actual pathes and file names.

When using some kind of IDE (C++ development environment), check the documentation of that on how to specify these arguments in the project settings to be passed when starting the application from within the IDE.


这篇关于如何在opencv上加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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