Reputation: 473
I am working on a sample project in Opencv. I have created the text file which contains the points of imag using objectmarker. Now I need Createsamples.exe to create vector file. But there`s no such file in 'opencv' folder. Theres only createsample.cpp file. Please help me how to go about it guys..
Upvotes: 5
Views: 10441
Reputation: 1025
Small detail for OpenCV 4.X on windows, the opencv_createsamples
program was removed du to porting from C to C++. So if you download this version, you WON'T find it. However, according to this https://github.com/opencv/opencv/issues/13231#issuecomment-465621445 you can use these specific program from 3.4 in your 4.3 install
Upvotes: 0
Reputation: 6666
I don't really understand why a bounty has been added to this question, Yuu's answer is very close to being correct with a few modifications:
The executable is not called createsamples.exe
in newer versions of OpenCV. With any default download and installation of a current version of OpenCV you will be able to navigate to the install folder, for me the right folder is:
C:\libraries\opencv\build\install\x86\vc15\bin
and inside this folder you will find both debug and release versions of the executable:
Update 1.0
For completness sake I have just downloaded and installed a default version of V3.4.0 from here. All I did was download, and install and you can find opencv_createsamples.exe
here:
It does not provide debug executables.
Update 2.0
I have just completed the same download and install for the most recent V2.X and you can find 'opencv_createsamples.exe' here:
You can see that only VC14 libs are created with 2.X & VC15 & VC14 X64 for V3.X
Upvotes: 2
Reputation: 1928
You'll have to download and install the OpenCV distribution here.
Building it from the cpp source gave me errors too.
createsamples.exe
will be in the following path: \opencv\build\x64\vc14\bin
Upvotes: 7
Reputation: 59
Look for the file opencv_createsamples.exe
.
By default it should be in
<opencv-dir>/build/bin
or
<opencv-dir>/build/bin/Release
.
Upvotes: -2