Ask Your Question
0

Haartraining in OPEN CV

asked 2013-02-05 08:04:57 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-02-05 12:01:28 -0600

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-05 08:04:57 -0600

Seen: 448 times

Last updated: Feb 05 '13