First time here? Check out the FAQ!

Ask Your Question
1

Where is createsamples application?

asked Sep 20 '12

flammxy gravatar image

updated Sep 25 '12

Kirill Kornyakov gravatar image

I am studying the haartraining. From some papers, the author says opencv has it's own createsamples program. But I can not find createsamples.exe or any other createsamples files in the opencv folder. Does anyone can tell me some information about it?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Sep 25 '12

Kirill Kornyakov gravatar image

I'm not sure about Windows, but on Linux, if you build OpenCV from sources, createsamples is here: opencv_build_dir/bin/opencv_createsamples.

createsamples is compiled from sources in opencv/apps/haartraining folder. You can read CMakeLists.txt file from there and find the following lines:

add_executable(opencv_createsamples cvhaartraining.h createsamples.cpp)
set_target_properties(opencv_createsamples PROPERTIES
                      DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
                      OUTPUT_NAME "opencv_createsamples")

So, try to build OpenCV from sources and you should get createsamples application. But it may be included into super pack for Windows and the prebuilt form.

Preview: (hide)

Comments

Thank you Kirill Kornyakov, Do you means I should use cmake to build opencv source code?

flammxy gravatar imageflammxy (Sep 26 '12)edit
1

Thank you. It works.

flammxy gravatar imageflammxy (Sep 26 '12)edit

Hi flammxy.. can you please let me know You you make the createsamples.exe in window thanks.

Pinky gravatar imagePinky (Jul 15 '13)edit

Yes, I build it by using cmake, and than find createsamples.exe.

flammxy gravatar imageflammxy (Aug 5 '13)edit

Question Tools

Stats

Asked: Sep 20 '12

Seen: 9,760 times

Last updated: Sep 25 '12