Sorry, this content is no longer available

Ask Your Question
7

Up to date version of Mergevec.cpp?

asked Jan 28 '13

Jean-François Côté gravatar image

updated Jan 28 '13

Hello!

I'm currently doing some traincascade experiment. For some object I want to find, I don't have more dans ~100 positive samples. I would like to use the technique explain in this very good but very old tutorial.

The part with the perl script to generate the multiple .vec file work well (with some modifications) and I create all the .vec. Now, I'm stuck at the part where I need to merge the .vec file...

They give the code but it's in opencv 1.0.0 so it's kind of outdated. Is there a version that somebody updated to work with OpenCV 2.4.3? (By the way, I think this code should be integrated in the OpenCV trunk and maintained). I would like something simple like copy the .cpp somewhere in the OpenCV project, compile and it work. Honestly, I just doesn't understand the code in the .cpp to make it work myself.

Any help would be greatly appreciated! Thanks

Preview: (hide)

Comments

I stuck in the same place. I tried to compile it by myself on Mac OS Mountain Lion but just I just get a lot of errors... :-( $ g++ pkg-config --cflags opencvpkg-config --libs opencv -o mergevec mergevec.cpp cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp cvhaartraining.cpp -bash: pkg-config: command not found -bash: pkg-config: command not found mergevec.cpp:1:16: error: cv.h: No such file or directory mergevec.cpp:2:21: error: highgui.h: No such file or directory mergevec.cpp:7:28: error: cvhaartraining.h: No such file or directory mergevec.cpp:8:47: error: _cvhaartraining.h: No such file or directory mergevec.cpp:12: error: ‘CvArr’ has not been declared mergevec.cpp:14: error: variable or field ‘icvAppendVec’ declared void mergevec.cpp:14: error: ‘CvVecFile’ was not

Schoerlock gravatar imageSchoerlock (May 21 '13)edit

I am having the same problem about merging the .vec files. Would really appreciate any direction on how do go about it. I will continue searching. I will post anything I find here.

gbabic gravatar imagegbabic (Oct 4 '13)edit

I'm stuck on this too. If you have high level explanation of what is going on, that would be greatly appreciated. I'm trying port it to python which is easier to understand. But somehow, I don't think it is simply merging two binary files. Also what is the merging format? Are we stripping out any headers?

Trak888 gravatar imageTrak888 (Feb 21 '14)edit

I'm looking for this too. I'm not sure if I am just doing something wrong, but it seems like you have the option to either a) generate positive images from a single image b) need a full set of marked up images and use an info file. It seems to me that this is something nearly everyone would be using, so I am not quite sure what I am missing!

w1res gravatar imagew1res (Mar 11 '14)edit

2 answers

Sort by » oldest newest most voted
1

answered Nov 14 '14

wulfebw gravatar image

I also ran into this issue and made a python utility to merge .vec files. Here it is: https://github.com/wulfebw/mergevec

Instructions are in the file along with a brief discussion of the vector file header format if you're interested.

Hope it helps.

Preview: (hide)
1

answered Apr 28 '14

I_Dream_In_C gravatar image

Hi, you can compile mergevec in Ubuntu 13.10 using the following 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

Preview: (hide)

Question Tools

Stats

Asked: Jan 28 '13

Seen: 2,533 times

Last updated: Nov 13 '14