Ask Your Question

Revision history [back]

To my knowledge, there are two ways to use opencv_createsamples

(1) Given an info file, listing multiple sample images and the bounding box of the object, it will create the vec file of samples.

(2) Given a single image file (using -img), it will generate various distorted versions of that image, and create a vec file of samples.

The tool does not allow you to use -img with multiple files, or -info with distortions.

One of the guys who created a training tutorial has an (outdated) tool for merging multiple vec files. This is what you are wanting.. unfortunately, i dont know anyone who has the merge tool working these days (there's open questions about that on this site)