how to limit number of faces detected by haar cascades
问题 I am using Haar cascade in an emotion detection system. Every video input I am giving to the model has only one face in it (It is a requirement). When I run Haar cascade model to detect faces, it has some false positives. Since I have only one face in the video, I want to take the most positive area detected and ignore all other detection. Is there a way to do that? 回答1: when you are calling detectMultiScale function, set the minNeighbours value to a high value to avoid false positives. Also,