Ask Your Question
0

Haartraining in OPEN CV

asked Feb 5 '13

Ashwin gravatar image

I am working on the haartraining project. I have created a text file that contains the object points that we focus on, using Object object marker utility. Now I need to compile createsample.cpp file to create .exe file, as I read it in tutorial. I really dont know how we can do that. Read somewhere that I need to make use of the CMakeLists`s

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

Can anyone please tell me how I can do that?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Feb 5 '13

You can use the CMake in OpenCV to compile all samples or do it manually like: g++ createsamples.cpp pkg-config opencv --cflags --libs -o createsamples on Linux or any similar way on your OS.

Preview: (hide)

Question Tools

Stats

Asked: Feb 5 '13

Seen: 480 times

Last updated: Feb 05 '13