From a3f4c822cb38cdb15b2968307f865609682ad814 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 15 Jun 2026 21:36:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E6=8E=A5=E5=8F=A34=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=A1=B5=EF=BC=8C=E6=9B=B4=E6=96=B0=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E5=92=8C=E6=8E=A5=E5=85=A5=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - static/test_interface4.html: 上传照片 → 英文优先字段 + 全部42项特征表格 + 原始JSON - gateway/app.py: 首页索引增加 if4_features 测试页 - static/integration.html: 接入说明补充接口4测试页链接 --- gateway/app.py | 1 + static/integration.html | 2 +- static/test_interface4.html | 196 ++++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 static/test_interface4.html diff --git a/gateway/app.py b/gateway/app.py index 5e60079..fe65caf 100644 --- a/gateway/app.py +++ b/gateway/app.py @@ -194,6 +194,7 @@ async def index(): "if1_measure": "/static/test_interface1.html", "if2_hair_grow": "/static/test_interface2.html", "if3_hair_grow_b": "/static/test_interface3.html", + "if4_features": "/static/test_interface4.html", "if5_hairline": "/static/test_interface5.html", }, } diff --git a/static/integration.html b/static/integration.html index 3f9d0c0..3e7e9c4 100644 --- a/static/integration.html +++ b/static/integration.html @@ -260,10 +260,10 @@ console.log(features['四季色彩季型']); // "冷夏型"(中文字段也保 1. 四庭七眼/static/test_interface1.html上传照片 → 原图+标注叠加,底图/标注开关,指标卡片 2. C端生发/static/test_interface2.html上传+性别 → 方案一覧(原图/叠加/生发),双图对比 3. B端生发/static/test_interface3.html划线图上传 → 生发效果图 + 4. 用户特征/static/test_interface4.html上传照片 → 42项面部特征表格 + 原始JSON 5. 发际线PNG/static/test_interface5.html上传+性别 → 发际线方案+中心点坐标

- 接口4 无测试页(纯 JSON 返回特征字段,浏览器直接调即可查看)。 完整 API 文档:/docs(Swagger UI)

diff --git a/static/test_interface4.html b/static/test_interface4.html new file mode 100644 index 0000000..2968fa0 --- /dev/null +++ b/static/test_interface4.html @@ -0,0 +1,196 @@ + + + + + +接口4 — 用户特征分析 测试页 + + + +
+

🔬 接口4 — 用户特征分析 测试

+

POST /api/v1/face/features  |  上传照片 → 火山方舟豆包视觉模型 → 42项面部特征  |  data.features 为 JSON 字符串

+ +
+
+
+
+ + +
+
JPG/PNG ≤1MB 正面照  |  调用火山方舟豆包视觉模型,耗时约数秒
+ +
+
+ + +
+ + + +