Kartoos
Kartoos

Reputation: 1160

How to build opencv correctly in windows to get "opencv_createsamples.exe"

I want to learn and use haarcascade classifier using OpenCV for detection of object of my choice. I searched the internet and found that createsamples utility helps in creating dataset for positive and negative images. I know how to install OpenCV in python (pip install opencv-python works perfectly) but since I need to use that utility I need to build the OpenCV for my windows system.


My attempts to install OpenCV in windows

Attempt 1 : using MinGW and cmake

It created an install directory in "C:\OpenCV\build\install"

but to my surprise opencv_createsamples.exe was not present there

opencv_visualisation.exe, opencv_annotation.exe, opencv_version.exe etc. are present

screenshot of install files generated

screenshot of build options selected in cmake by default

It is clear BUILD_opencv_apps is true by default and other apps were created except this one

still in source folder : createsamples.cpp is present in "C:\OpenCV\apps\" along with opencv_visualisation.cpp and others

Attempt 2: visual studio 14_15 build from official site

still to my surprise at "C:\OpenCV401\build\x64\vc14\bin" no opencv_createsamples.exe likewise other files are present

screenshot of files present in build

Attempt 3

screenshot of files present in this build


So, my question is :

Upvotes: 3

Views: 2665

Answers (1)

Nuzhny
Nuzhny

Reputation: 1927

Createsamples was disabled in latest OpenCV (4.0 and greater): here.

Upvotes: 4

Related Questions