Update app.py
Browse files
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 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 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}")
|