Up to date version of Mergevec.cpp?
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
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 opencv
pkg-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 notI 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.
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?
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!