opencv_traincascade always gets stuck

后端 未结 1 1558
日久生厌
日久生厌 2020-12-19 19:49

I am trying to use OpenCV\'s opencv_traincascade to generate a Haar Cascade. So far I have 87 distinctive positive samples and 39 negative samples for testing purposes. I ge

相关标签:
1条回答
  • 2020-12-19 20:33

    A possible answer is that you're using too few negative samples. Read the instruction from OpenCV documents and reference paper from Viola and Jones. They are using cascaded classifier to achieve high accuracy and low false alarms by eliminate part of the negative samples each time. If you are using too few negative samples, it defeat the purpose of the cascaded classifier in the first place. Notice that, for practical use, the system have much much more images without faces than with faces.

    0 讨论(0)
提交回复
热议问题