From ccb9c142c419e843a38e712c0d69abffa517535f Mon Sep 17 00:00:00 2001 From: xsl Date: Thu, 5 Nov 2026 22:29:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=8E=A5=E5=85=A5=E9=A1=B5=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E6=8E=A5=E5=8F=A31/6=20=E7=9A=84=E7=AB=96=E7=BA=BF?= =?UTF-8?q?=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- static/integration.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/integration.html b/static/integration.html index 4a850db..6d1d867 100644 --- a/static/integration.html +++ b/static/integration.html @@ -107,6 +107,7 @@ four_courtsobject四庭:top/upper/middle/lower,各含 _cm 和 ratios seven_eyesobject七眼:eye_width_cm/face_width_cm/inter_eye_distance_cm + ratios + eye1~eye7(从左到右 7 段宽度 cm,eye1/eye7 耳朵不可见时为 null) landmarksobject5 个关键点像素坐标:hair_top/hairline/brow_center/nose_bottom/chin_tip + vertical_linesobject标注图竖线坐标,与标注 PNG 同一套几何。原图像素:y_top / y_bottom 为竖线共用上下端(头顶之上到下巴之下,两端各伸出约短边的 3%,可能略超出图片);lines 从左到右,每项 { name, x }。name:left_head_edge(人头最左,耳朵不可见则不出现,此时 eye1 为 null)、left_cheek、left_eye_outer、left_eye_inner、right_eye_inner、right_eye_outer、right_cheek、right_head_edge(人头最右,不可见则不出现,此时 eye7 为 null) hairline_sourcestring发际线来源:"segmentation"(真实分割,可信度高)/ "estimated"(比例估算,可信度低) head_poseobject头部姿态角度:{ yaw, pitch, roll }(度),接近 0 表示正面照 left_positionobjectMediaPipe 21 号关键点坐标(左脸定位点),原图像素:{ x: number, y: number } @@ -127,6 +128,7 @@ const { code, data } = await res.json(); // data.annotated_image_url → 标注 PNG // data.face_total_height_cm → 全脸高度 // data.four_courts.ratios → { top_court: 0.25, ... } +// data.vertical_lines → { y_top, y_bottom, lines: [{ name, x }, ...] } // 前端叠加显示:原图 + annotated_image_url(absolute 叠加) @@ -252,6 +254,7 @@ console.log(features.gene_style); // "自然型" four_courtsobject四庭:top/upper/middle/lower,各含 _cm 和 ratios seven_eyesobject七眼:eye_width_cm/face_width_cm/inter_eye_distance_cm + ratios + eye1~eye7(从左到右 7 段宽度 cm,eye1/eye7 耳朵不可见时为 null) landmarksobject5 个关键点像素坐标:hair_top/hairline/brow_center/nose_bottom/chin_tip + vertical_linesobject竖线坐标,结构同接口1 hairline_sourcestring发际线来源:"segmentation"(真实分割)/ "estimated"(比例估算) head_poseobject头部姿态角度:{ yaw, pitch, roll }(度) left_positionobjectMediaPipe 21 号关键点坐标(左脸定位点),原图像素:{ x: number, y: number } @@ -297,6 +300,7 @@ console.log(features.gene_style); // "自然型" four_courtsobject三庭:upper/middle/lower,各含 _cm 和 ratios(无 top_court) seven_eyesobject七眼:eye_width_cm/face_width_cm/inter_eye_distance_cm + ratios + eye2~eye6(左脸颊/左眼/两眼间距/右眼/右脸颊,5 段宽度 cm;无 eye1/eye7) landmarksobject4 个关键点:hairline/brow_center/nose_bottom/chin_tip(无 hair_top) + vertical_linesobject竖线坐标。结构同接口1,但 y_top / y_bottom 为发际线到下巴尖(不伸出),lines 只有中间 6 条,无 left_head_edge / right_head_edge left_positionobjectMediaPipe 21 号关键点坐标(左脸定位点),原图像素:{ x: number, y: number } right_positionobjectMediaPipe 251 号关键点坐标(右脸定位点,与 21 号镜像),原图像素:{ x: number, y: number }