pos{1-7}_{led|polarized|uv}
meta
在本页「Body」区域切换请求体格式可分别查看两种模式的完整字段定义。响应结构两种模式一致;每点位节点的 source_urls(原图 URL)供业务侧写库。限制:单文件 ≤10MB(超返 400)、整请求 ≤100MB(超返 413)。各端(fetch/axios/微信小程序)完整接入代码见仓库 docs/multipart_frontend_examples.md。
source_urls
docs/multipart_frontend_examples.md
{ "gender": 1, "age": 25, "user_id": "u_123", "positions": [ { "position_index": 3, "polarized_image_url": "https://example.com/polarized.jpg" } ] }
curl --location '/analysis_hair_multi' \ --header 'Content-Type: application/json' \ --data '{ "gender": 1, "age": 25, "user_id": "u_123", "positions": [ { "position_index": 3, "polarized_image_url": "https://example.com/polarized.jpg" } ] }'
{ "code": 200, "msg": "分析成功", "overall_score": 91, "success_count": 1, "positions": { "3": { "score": 91, "indicators": { "redness_area": { "light": "polarized", "image_key": "redness", "value": 41.86, "score": 91, "grade": "正常", "suggestion": "恭喜您,您的头皮不存在敏感问题!", "url": "http://45.207.228.66:5000/log/example/hair_redness.jpg" } }, "raw_metrics": { "follicle_density": null, "white_hair_count": null, "terminal_hair_rate": null, "medium_hair_rate": null, "velveolus_hair_rate": null, "scurf_count": 3, "scalp_oil_count": null } } } }