接口6 增加字段

This commit is contained in:
xsl
2026-07-16 12:38:10 +08:00
parent 1cd4115b26
commit 632e75317b
10 changed files with 98 additions and 30 deletions
+2 -1
View File
@@ -374,7 +374,8 @@ def _run_face_measure_data(image, variant="v1"):
data["four_courts"].pop("top_court_cm", None)
data["face_total_height_cm"] = round(
result.upper_cm + result.middle_cm + result.lower_cm, 2)
data["landmarks"].pop("hair_top", None)
# 注:landmarks.hair_top 保留返回(供前端/下游定位头顶),但顶庭数值、
# 占比、标注图仍按三庭处理,显示效果不变。
# 七眼段宽度(cm)。eye1=左耳外段 eye2=左脸颊 eye3=左眼 eye4=两眼间距 eye5=右眼 eye6=右脸颊 eye7=右耳外段。
# eye2~eye6(5段)只用内部分点,接口1/6 共用;eye1/eye7 需耳朵分割端线,仅接口1 有。