drdudddd commited on
Commit
dbd33cd
·
verified ·
1 Parent(s): 08a04ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -99,10 +99,10 @@ if uploaded_file is not None:
99
  # st.image(image, caption="Original", width=True)
100
 
101
  with col2:
102
- debug = img_bgr.copy()
103
- cv2.rectangle(debug, (bx1, by1), (bx2, by2), (0, 255, 0), 4)
104
- cv2.rectangle(debug, (gx1, gy1), (gx2, gy2), (0, 0, 255), 4)
105
- debug_rgb = cv2.cvtColor(debug, cv2.COLOR_BGR2RGB)
106
  # st.image(debug_rgb, caption="Erkannte Zonen (grün=Brust, rot=Vagina)", width=True)
107
  st.success(f"**Geschätztes Alter: {est_age} Jahre** (±2 Jahre)")
108
  st.info(f"Tanner Stufe: B{b_stage} + Genital {g_stage} → Kombiniert Stufe {combined} | Confidence: {avg_conf:.2f}")
 
99
  # st.image(image, caption="Original", width=True)
100
 
101
  with col2:
102
+ debug = img_bgr.copy()
103
+ cv2.rectangle(debug, (bx1, by1), (bx2, by2), (0, 255, 0), 4)
104
+ cv2.rectangle(debug, (gx1, gy1), (gx2, gy2), (0, 0, 255), 4)
105
+ debug_rgb = cv2.cvtColor(debug, cv2.COLOR_BGR2RGB)
106
  # st.image(debug_rgb, caption="Erkannte Zonen (grün=Brust, rot=Vagina)", width=True)
107
  st.success(f"**Geschätztes Alter: {est_age} Jahre** (±2 Jahre)")
108
  st.info(f"Tanner Stufe: B{b_stage} + Genital {g_stage} → Kombiniert Stufe {combined} | Confidence: {avg_conf:.2f}")