Reputation: 1160
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.
Attempt 1 : using MinGW and cmake
cloned latest OpenCV using git at "C:\OpenCV"
from https://github.com/opencv/opencv
Installed cmake
"C:\OpenCV\build"
using MinGW(64 bit) build system with default optionsmingw32-make
mingw32-make install
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
Downloaded OpenCV latest 4.0.1 from https://github.com/opencv/opencv/releases/download/4.0.1/opencv-4.0.1-vc14_vc15.exe from https://github.com/opencv/opencv/releases webpage
extracted the opencv build at "C:\OpenCV401\"
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
<OpenCV_DIR>/x64/vc10/bin/
all the amazing files are present screenshot of files present in this build
So, my question is :
Upvotes: 3
Views: 2665