supitsparth commited on
Commit
19efb46
1 Parent(s): 558a868

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ face_cascade = cv2.CascadeClassifier('haarcascade.xml')
23
  # a.text_area(value='detecting', label='')
24
  while True:
25
  ret, frame = cam.read()
26
- if frame.any():
27
  gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
28
  faces = face_cascade.detectMultiScale(gray, 1.1, 4)
29
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
23
  # a.text_area(value='detecting', label='')
24
  while True:
25
  ret, frame = cam.read()
26
+ if frame:
27
  gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
28
  faces = face_cascade.detectMultiScale(gray, 1.1, 4)
29
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)