Spaces:
Sleeping
Sleeping
Commit ·
8e23ff6
1
Parent(s): 307232c
text pos
Browse files77 unmodified lines7879808182838477 unmodified lines# Display Total Area and Coveragesummary_label = f"Total Stain: {total_stain_area_cm2:.2f}cm2 | Coverage: {coverage:.2f}%"cv2.putText(annotated_frame, summary_label, (20, 60),cv2.FONT_HERSHEY_SIMPLEX, font_scale * 1.2, (0, 0, 255), thickness + 1, line_type)return cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB)77 unmodified lines7879808182838477 unmodified lines# Display Total Area and Coveragesummary_label = f"Total Stain: {total_stain_area_cm2:.2f}cm2 | Coverage: {coverage:.2f}%"cv2.putText(annotated_frame, summary_label, (20, 100),cv2.FONT_HERSHEY_SIMPLEX, font_scale * 1.2, (0, 0, 255), thickness + 1, line_type)return cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB)
app.py+1-1