如何在命令提示符下使用OpenCv实用程序 [英] How to use OpenCv utilities in Command prompt
问题描述
我正在使用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
.我无法做到这一点.请任何人向我建议使用Cmake
和TBB
构建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屋!