Spaces:
Sleeping
Sleeping
Update calculations.py
Browse files- calculations.py +3 -4
calculations.py
CHANGED
@@ -88,12 +88,11 @@ def measure_body_sizes(side_colored_mask, front_colored_mask, sideposes, frontpo
|
|
88 |
|
89 |
# Convert pixel measurements to real measurements using the height ratio
|
90 |
measurements.append({
|
91 |
-
"
|
92 |
-
"leg_length_cm": leg_length_cm,
|
93 |
"arm_length_cm": arm_length_cm,
|
94 |
"shoulder_to_waist_cm": shoulder_to_waist_cm,
|
95 |
-
"
|
96 |
-
"
|
97 |
})
|
98 |
|
99 |
return measurements
|
|
|
88 |
|
89 |
# Convert pixel measurements to real measurements using the height ratio
|
90 |
measurements.append({
|
91 |
+
"height_cm": real_height_cm,
|
|
|
92 |
"arm_length_cm": arm_length_cm,
|
93 |
"shoulder_to_waist_cm": shoulder_to_waist_cm,
|
94 |
+
"shoulder_width_cm": shoulder_width_cm,
|
95 |
+
"leg_length_cm": leg_length_cm,
|
96 |
})
|
97 |
|
98 |
return measurements
|