Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -436,8 +436,8 @@ class WatermelonProcessor:
|
|
| 436 |
_, _, f_width_px = get_intersections(phi, flesh_mask)
|
| 437 |
|
| 438 |
rind_thick_px = None
|
| 439 |
-
if width_px > 0 and
|
| 440 |
-
rind_thick_px = float(max(0.0, (width_px -
|
| 441 |
|
| 442 |
return height_px, width_px, rind_thick_px, (pt_top, pt_bot), (pt_left, pt_right), f_height_px, f_width_px
|
| 443 |
|
|
|
|
| 436 |
_, _, f_width_px = get_intersections(phi, flesh_mask)
|
| 437 |
|
| 438 |
rind_thick_px = None
|
| 439 |
+
if width_px > 0 and f_width_px > 0:
|
| 440 |
+
rind_thick_px = float(max(0.0, (width_px - f_width_px) / 2.0))
|
| 441 |
|
| 442 |
return height_px, width_px, rind_thick_px, (pt_top, pt_bot), (pt_left, pt_right), f_height_px, f_width_px
|
| 443 |
|