fix: 删除 MeasureResult.__init__ 中重复的七眼厘米赋值块

This commit is contained in:
xsl
2026-07-27 23:17:35 +08:00
parent fd9c41430c
commit b354c8c627
-5
View File
@@ -191,11 +191,6 @@ class MeasureResult:
self.face_width_cm = eyes["face_width_px"] / px_per_cm
self.inter_eye_cm = eyes["inter_eye_distance_px"] / px_per_cm
# 七眼厘米
self.eye_width_cm = eyes["eye_width_px"] / px_per_cm
self.face_width_cm = eyes["face_width_px"] / px_per_cm
self.inter_eye_cm = eyes["inter_eye_distance_px"] / px_per_cm
def to_response(self):
# 发际线弃用:顶/上庭相关字段置 null(保留键),ratio 分母只算中下庭;
# landmarks.hair_top/hairline 置 null。否则按四庭正常输出。