How to use OpenCv utilities in Command prompt

ぐ巨炮叔叔 提交于 2019-12-13 07:24:26

问题


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

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 command is not recognized.

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.

Thanks in advance.


回答1:


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



来源:https://stackoverflow.com/questions/32623586/how-to-use-opencv-utilities-in-command-prompt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!