Spaces:
Runtime error
Runtime error
nitishkumargundapu793
commited on
Commit
•
afa08da
1
Parent(s):
c61108c
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,6 @@ def image_bounder(img1):
|
|
26 |
eye_cascade = cv2.CascadeClassifier(cv2.data.haarcascades +'haarcascade_eye.xml')
|
27 |
gray = cv2.cvtColor(img1, cv2.COLOR_BGR2GRAY)
|
28 |
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
|
29 |
-
|
30 |
for (x,y,w,h) in faces:
|
31 |
cv2.rectangle(img1,(x,y),(x+w,y+h),(255,255,0),2)
|
32 |
roi_gray = gray[y:y+h, x:x+w]
|
|
|
26 |
eye_cascade = cv2.CascadeClassifier(cv2.data.haarcascades +'haarcascade_eye.xml')
|
27 |
gray = cv2.cvtColor(img1, cv2.COLOR_BGR2GRAY)
|
28 |
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
|
|
|
29 |
for (x,y,w,h) in faces:
|
30 |
cv2.rectangle(img1,(x,y),(x+w,y+h),(255,255,0),2)
|
31 |
roi_gray = gray[y:y+h, x:x+w]
|