Ask Your Question
7

Up to date version of Mergevec.cpp?

asked 2013-01-28 09:02:57 -0600

Jean-François Côté gravatar image

updated 2013-01-28 09:03:33 -0600

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

edit retag flag offensive close merge delete

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 ( 2013-05-20 18:22:50 -0600 )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 ( 2013-10-03 21:46:44 -0600 )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 ( 2014-02-20 21:53:16 -0600 )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 ( 2014-03-10 22:44:53 -0600 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2014-11-13 21:38:08 -0600

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.

edit flag offensive delete link more
1

answered 2014-04-28 14:15:36 -0600

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

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-28 09:02:57 -0600

Seen: 2,517 times

Last updated: Nov 13 '14