opencv_traincascade with same size negatives (as positives)

asked 2012-08-13 02:19:17 -0500

tmanthey gravatar image

We trained an LBP classifier and currently we dump all detections to disk. The size of these detection images is the same size we use for the positive samples (24x24).

What I would like to do now is to create a feedback loop in the training process. In other words. Use my false positives detection images to tell opencv_traincascade what is NOT our desired result. Current negatives are quite unspecific. Basically I would like to specify a "negatives.vec" file.

However the documentation states that the negatives must be larger than the positives.

What's the best way to include these false positives in a run of opencv_traincascade?

edit retag flag offensive close merge delete