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

fix flag name for opencv 3

parent a88088ae
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ def detectFaces(model, image):
scaleFactor=1.1,
minNeighbors=5,
minSize=(30, 30),
flags=cv2.cv.CV_HAAR_SCALE_IMAGE
flags=cv2.CASCADE_SCALE_IMAGE
)
def main(argv):
......
......@@ -7,7 +7,6 @@ from keras.models import load_model
import numpy as np
from utils.datasets import get_labels
from utils.inference import detect_faces
from utils.inference import draw_text
from utils.inference import draw_bounding_box
from utils.inference import apply_offsets
......@@ -51,7 +50,7 @@ class EGProcessor:
scaleFactor=1.1,
minNeighbors=5,
minSize=(30, 30),
flags=cv2.cv.CV_HAAR_SCALE_IMAGE
flags=cv2.CASCADE_SCALE_IMAGE
)
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