如何在命令提示符下使用OpenCv实用程序 [英] How to use OpenCv utilities in Command prompt

查看:116
本文介绍了如何在命令提示符下使用OpenCv实用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java Eclipse中的OpenCv库在图像中进行对象检测.我正在使用Haar功能为此进行Cascade分类器培训.

I am doing object detection in images using OpenCv library in Java Eclipse. I am using Cascade Classifier Training for this using Haar features.

为了训练分类器,我需要在命令提示符下生成一些文本文件,.vec文件,最后是.xml文件.我已经生成了文本文件,但是在命令提示符下使用opencv_createsamples实用程序制作.vec文件时,出现了错误:

For training the classifier I need to generate some text files, .vec file and finally .xml file on command prompt. I have already generated text files but while making .vec file using opencv_createsamples utility on command prompt, I am getting error:

opencv_createsamples命令无法识别.

opencv_createsamples command is not recognized.

要解决此问题,我需要使用CMake使用TBB线程构建来构建opencv.我无法做到这一点.请任何人向我建议使用CmakeTBB构建opencv的完整而正确的方法.

To resolve this I need to build opencv with TBB Threading Building using CMake. I am unable to do this. Please anyone suggest me the full and proper method of building opencv with TBB using Cmake.

提前谢谢.

推荐答案

通过在资源管理器中进行搜索,确保您具有正确的文件名.然后添加地址前缀.请注意,此示例在调试时有一个d.

Make sure you have the right file name by doing a search in explorer. then add the address prefix. Notice that this example has a d for debug.

C:\ opencv \ bin \ Debug \ opencv_createsamplesd.exe -vec samples.vec

C:\opencv\bin\Debug\opencv_createsamplesd.exe -vec samples.vec

这篇关于如何在命令提示符下使用OpenCv实用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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