Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -572,7 +572,7 @@ class WatermelonProcessor:
|
|
| 572 |
raw_h, raw_w, raw_rt, raw_h_line, raw_w_line = self.calculate_axis_metrics(cx, cy, raw_phi, target_rind_mask, flesh_combined)
|
| 573 |
|
| 574 |
# Midline is found using flesh_combined (with gap) and clipped to the raw rind contour
|
| 575 |
-
midline = self.
|
| 576 |
|
| 577 |
raw_perim = float(cv2.arcLength(raw_rind_cnt, True))
|
| 578 |
raw_tot_a = self.contour_area_px(pts_r_raw)
|
|
|
|
| 572 |
raw_h, raw_w, raw_rt, raw_h_line, raw_w_line = self.calculate_axis_metrics(cx, cy, raw_phi, target_rind_mask, flesh_combined)
|
| 573 |
|
| 574 |
# Midline is found using flesh_combined (with gap) and clipped to the raw rind contour
|
| 575 |
+
midline = self.get_dual_mask_midline(flesh_l_m, flesh_r_m, raw_rind_cnt, pts_r_raw, cx, cy)
|
| 576 |
|
| 577 |
raw_perim = float(cv2.arcLength(raw_rind_cnt, True))
|
| 578 |
raw_tot_a = self.contour_area_px(pts_r_raw)
|