问题
Using a C# implementation of Open CV which in turn is directly based on the OpenCV Java source here. http://docs.opencv.org/java/
The specific line where I call the HAAR classifier is
cascade.detectMultiScale(grayMat, faces, 1.2, 3, 2, new Size(60, 60), new Size(150, 150));
The problem is I only want to track one face at a time, even if several are detected. ie if there are 2 faces detected, my tracking rectangles keep jumping randomly between the 2 faces. How can I ONLY detect 1 face at a time(ie the first one detected)?
来源:https://stackoverflow.com/questions/32059717/haar-classifier-how-to-detect-only-one-face-at-a-time