Ask Your Question

Revision history [back]

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.