Ask Your Question
1

Where is createsamples application?

asked 2012-09-20 09:47:43 -0600

flammxy gravatar image

updated 2012-09-25 10:27:08 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2012-09-25 10:33:15 -0600

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.

edit flag offensive delete link more

Comments

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

flammxy gravatar imageflammxy ( 2012-09-25 20:48:04 -0600 )edit
1
Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-09-26 02:09:40 -0600 )edit

Thank you. It works.

flammxy gravatar imageflammxy ( 2012-09-26 16:55:10 -0600 )edit

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

Pinky gravatar imagePinky ( 2013-07-14 23:06:29 -0600 )edit

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

flammxy gravatar imageflammxy ( 2013-08-05 14:31:59 -0600 )edit

Question Tools

Stats

Asked: 2012-09-20 09:47:43 -0600

Seen: 9,618 times

Last updated: Sep 25 '12