问题
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