I made a working face recognition program but from time to time it can: 1) Not detect a face / detect an extra non face as a face. 2) When it gets a familiar face he might recognize that it’s a new person / recognize that a new unfamiliar face is someone else.
These two problems of false positive and true negatives are due to the constants such as the in the cascade.detectMultiScale
parameters: scaleFactor, minNeighbors, minSize, maxSize.
And in the face_recognizer the num_components, threshold.
So my question is how can I find the optimal values for these parameters?