Ask Your Question

dancole's profile - activity

2017-07-02 10:34:12 -0600 commented question Combine detectMultiScale Objects / Results

There could be multiple faces, but not right now. I lowered the scale Factor and minNeighbors until the script recognized my face consistently. I could play with that some more. There is a small angle where the face and profile overlap. I'm using a Raspberry PI 3 with picamera.

2017-07-01 23:22:26 -0600 asked a question Combine detectMultiScale Objects / Results
faces = face_cascade.detectMultiScale(gray, 1.1, 3)
profiles = profiles_cascade.detectMultiScale(gray, 1.1, 3)
profiles_flip = profiles_flip_cascade.detectMultiScale(gray, 1.1, 3)

How do I combine the results and remove overlapping bounding boxes? Depending on the number of faces and their angles, the variables above might be a tuple or a numpy.ndarray. I figure I can use groupRectangles() to reduce overlapping results.