Skip to content
Snippets Groups Projects
Commit 9d4a6e1f authored by Markus Willman's avatar Markus Willman
Browse files

restore detectMultiScale() arguments

parent e07f62c1
No related branches found
No related tags found
No related merge requests found
...@@ -83,10 +83,9 @@ def logError(msg): ...@@ -83,10 +83,9 @@ def logError(msg):
def detectFaces(model, image): def detectFaces(model, image):
return model.detectMultiScale(image, return model.detectMultiScale(image,
scaleFactor=1.1, scaleFactor=1.3,
minNeighbors=5, minNeighbors=5,
minSize=(30, 30), minSize=(60, 60)
flags=cv2.CASCADE_SCALE_IMAGE
) )
def main(argv): def main(argv):
......
...@@ -47,10 +47,9 @@ class EGProcessor: ...@@ -47,10 +47,9 @@ class EGProcessor:
def detectFaces(self, model, image): def detectFaces(self, model, image):
return model.detectMultiScale(image, return model.detectMultiScale(image,
scaleFactor=1.1, scaleFactor=1.3,
minNeighbors=5, minNeighbors=5,
minSize=(30, 30), minSize=(60, 60)
flags=cv2.CASCADE_SCALE_IMAGE
) )
def processImage(self, image, result_fname = None, type = 'png', detect_emotion = True): def processImage(self, image, result_fname = None, type = 'png', detect_emotion = True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment