VanShingel commited on
Commit
4bb1c1a
1 Parent(s): 9eb4a43

no face detected err

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def main_pipeline(image):
50
  faces = face_cascade.detectMultiScale(gray_img, 1.1, 4)
51
 
52
  if len(faces) == 0:
53
- return "NO FACE DETECTED"
54
 
55
  x, y, w, h = faces[0]
56
  #cv2.rectangle(image, (x, y), (x+w, y+h), (255, 0, 0), 2)
 
50
  faces = face_cascade.detectMultiScale(gray_img, 1.1, 4)
51
 
52
  if len(faces) == 0:
53
+ return original_image , "NO FACE DETECTED", "NO FACE DETECTED"
54
 
55
  x, y, w, h = faces[0]
56
  #cv2.rectangle(image, (x, y), (x+w, y+h), (255, 0, 0), 2)