In one of my questions discussed here here there's the problem that OpenCV recognizes the object to detect only in training images. Up to today I have listened to discordant points of view: how does the .vec file have to be created? Does it need to contain only positive images (cropped images showing ONLY the interested object) or samples images (interested object with random background)?
If it needs to contain only the cropped interested object, on which images does opencv_traincascade
have to train?
I read and read this tutorial over and over but I still don't understand which is the correct way to proceed...would anyone explain me?