codevlogger2003 commited on
Commit
4cb596c
1 Parent(s): ff436b2

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -44,8 +44,10 @@ def main(options):
44
  progress_bar.progress((i + 1) / 100)
45
  status_text.text(f"Processing {i+1}%")
46
  time.sleep(0.01)
 
47
 
48
  progress_bar.empty()
 
49
  gray_frame = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
50
  faces = cascade.detectMultiScale(gray_frame, 1.1, 3)
51
  faces = sorted(faces, key=lambda f: -f[2] * f[3])
@@ -71,7 +73,7 @@ def main(options):
71
 
72
  if 'dominant_race' in user_selected_items:
73
  emotion_label='Race: '+str(result[0]['dominant_race']).title()
74
- cv2.putText(image, emotion_label, (x, y+h+150), cv2.FONT_ITALIC,1 ,(25,25,112), 2)
75
 
76
  st.image(image, channels='BGR')
77
 
 
44
  progress_bar.progress((i + 1) / 100)
45
  status_text.text(f"Processing {i+1}%")
46
  time.sleep(0.01)
47
+
48
 
49
  progress_bar.empty()
50
+ st.balloons()
51
  gray_frame = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
52
  faces = cascade.detectMultiScale(gray_frame, 1.1, 3)
53
  faces = sorted(faces, key=lambda f: -f[2] * f[3])
 
73
 
74
  if 'dominant_race' in user_selected_items:
75
  emotion_label='Race: '+str(result[0]['dominant_race']).title()
76
+ cv2.putText(image, emotion_label, (x, y+h+150), cv2.FONT_ITALIC,1 ,(0,0,0), 2)
77
 
78
  st.image(image, channels='BGR')
79