Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This will merely worked for python 3 or later and opencv 3 or later.

faces, w, n = face_cascade.detectMultiScale3(gray, scaleFactor=1.3,
                                                                          minNeighbors=5,
                                                                          minSize=(100, 100),
                                                                          flags=cv2.CASCADE_SCALE_IMAGE,
                                                                          outputRejectLevels=True)

This will merely worked for python 3 or later and opencv 3 or later.

 faces, w, n = face_cascade.detectMultiScale3(gray, scaleFactor=1.3,
                                                      minNeighbors=5,
                                                      minSize=(100, 100),
                                                      flags=cv2.CASCADE_SCALE_IMAGE,
                                                      outputRejectLevels=True)