haar classifier - haartraining in open cv 2.4.9 and ubuntu 14.04 LTS -


i have tried tutorial http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html

i got error while run command:

g++ `pkg-config --libs --cflags opencv` -i. -o mergevec mergevec.cpp\ cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp\ cvhaartraining.cpp\ -lopencv_core -lopencv_calib3d -lopencv_imgproc -lopencv_highgui -lopencv_objdetect 

the error message :

g++: error: mergevec.cppcvboost.cpp: no such file or directory g++: error: cvhaarclassifier.cppcvhaartraining.cpp-lopencv_core: no such file or directory

then tried run command this:

g++ `pkg-config --libs --cflags opencv` -i. -o mergevec mergevec.cpp  cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp  cvhaartraining.cpp -lopencv_core -lopencv_calib3d -lopencv_highui -lopencv_objdetect/ 

and still met error message this:

/usr/bin/ld: cannot find -lopencv_highui /usr/bin/ld: cannot find -lopencv_objdetect/ collect2: error: ld returned 1 exit status

can me? thank help

i had same problem when scaling opencv haar , down on different arch's of ubuntu on ec2 until found python version of mergevec in github: https://github.com/wulfebw/mergevec created wulfebw

it did trick.

just use python version instead of compiling 1 in tutorial. long opencv libraries installed correctly python, should work.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -