OpenCV and hidden SVM detector

I was wondering if anyone managed to successfully use the OpenCV implementation of the hidden SVM detector ( http://docs.opencv.org/modules/objdetect/doc/latent_svm.html ). There is sample code that shows how to use the library, but the problem is that the sample code uses a ready-made detector model that was generated using MatLab. Can someone explain to me how to create my own model of detectors?

+5
source share
1 answer

The implementation of MATLAB LatSVM by the authors of the article has a train script called pascal. There is a README with tarball explaining its use:

Using the learning code
=======================

1. Download and install the 2006-2011 PASCAL VOC devkit and dataset.
   (you should set VOCopts.testset='test' in VOCinit.m)
2. Modify 'voc_config.m' according to your configuration.
3. Start matlab.
4. Run the 'compile' function to compile the helper functions.
   (you may need to edit compile.m to use a different convolution 
    routine depending on your system)
5. Use the 'pascal' script to train and evaluate a model. 

example:
>> pascal('bicycle', 3);   % train and evaluate a 6 component bicycle model

The learning code saves a number of intermediate models in a model cache
directory defined in 'voc_config.m'.

- . .

+5

All Articles