Spaces:
Sleeping
Sleeping
Commit
·
eb98b37
1
Parent(s):
96bcd60
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ if img_file_buffer is not None:
|
|
92 |
|
93 |
faces=face_cascade.detectMultiScale(image1,1.3,5)
|
94 |
for (p,q,r,s) in faces:
|
95 |
-
image =
|
96 |
cv2.rectangle(image1,(p,q),(p+r,q+s),(255,0,0),2)
|
97 |
image = cv2.resize(image,(48,48))
|
98 |
img = extract_features(image)
|
|
|
92 |
|
93 |
faces=face_cascade.detectMultiScale(image1,1.3,5)
|
94 |
for (p,q,r,s) in faces:
|
95 |
+
image = image1[q:q+s,p:p+r]
|
96 |
cv2.rectangle(image1,(p,q),(p+r,q+s),(255,0,0),2)
|
97 |
image = cv2.resize(image,(48,48))
|
98 |
img = extract_features(image)
|