Ask Your Question
0

recompile traincascade to generate opencv_traincascade in linux

asked 2014-02-05 23:00:29 -0600

apoorv gravatar image

I have made some changes to traincascade.cpp file but am facing difficulty in compiling it again. Any help will be really greatful

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-06 05:20:21 -0600

matspetter gravatar image

I have also fiddled with this. I am now using this little script to build it:

set -x
clang++ -c -v *.cpp -Os -DWITH_TBB=ON -I /usr/local/include -I /usr/local/include/opencv -I /usr/local/include/opencv2

clang++ -v *.o -L /usr/local/lib -lopencv_highgui -lopencv_objdetect -lopencv_imgproc -lopencv_video -lopencv_features2d -lopencv_flann -lopencv_legacy -lopencv_ml -lopencv_core -o traincascadeLinux

goto the apps/traincascade folder and run the above. It will generate a "traincascadeLinux" executable.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-05 23:00:29 -0600

Seen: 459 times

Last updated: Mar 06 '14