{"templateId":"api_docs","sharedDataIds":{"apiDocsStore":"api-docs-@l10n/zh-CN/reference/ai_makeup_transfer.yaml","sidebar":"sidebar-@l10n/zh-CN/reference/sidebars.yaml"},"props":{"definitionId":"@l10n/zh-CN/reference/ai_makeup_transfer.yaml","settings":{"baseUrlPath":"/zh-cn/reference/ai_makeup_transfer"},"disableAutoScroll":true,"seo":{"title":"AI 仿妆迁移","description":"YouCam API documentation by Perfect Corp. Learn how to use Skin analysis API, Virtual try-on API, Image editing API, and Video generative AI APIs.","siteUrl":"https://docs.perfectcorp.com","keywords":"AI Skin Analysis, AI Clothes, AI Hairstyle, AI Outfits","image":"/assets/favicon.cd6fa4d833b2a573b3c6dae68386b293da205b203402cb0c97b80bd2acc07ea2.8351e24f.png"},"dynamicMarkdocComponents":[],"metadata":{"type":"openapi","title":"AI 仿妆迁移","version":"","description":"# 概览\n看到喜欢的造型，直接上传就行！AI 仿妆迁移让您轻松好玩地尝试各种造型：上传您中意的照片，一张张换着试。有想试的妆容？让 AI 仿妆迁移给您一个惊喜！\n\n首先，上传一张您本人的照片作为目标图，要求脸部与五官清楚可见。\n\n然后，上传一张您喜欢的妆容照片作为参考图。 \n\n就这么简单——一张 AI 仿妆迁移好的照片就有了。 \n\n示例：\n![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/YCE_web_Makeup_Transfer_s1_img_be53c5c345.jpg)\n\n![](https://plugins-media.makeupar.com/smb/blog/post/2024-06-24/fda62e5d-ba58-4ecf-838a-c7d5f804c77b.jpg)\n\n---\n\n## 文件规格与错误码\n\n* 支持的格式与尺寸\n\n|AI 功能|支持尺寸|支持文件大小|支持格式|\n|  ----  | ----  | ----  | ----  |\n|AI 仿妆迁移|1024x1024（长边 <= 1024），仅支持单人脸，需露出完整脸部|< 10MB|jpg/jpeg/png|\n\n* 错误码\n\n|错误码|说明|\n|  ----  | ----  |\n|error_src_no_face\t|用户图中未检测到人脸\n|error_ref_no_face\t|参考图中未检测到人脸\n|error_src_face_too_small\t|用户图中的人脸过小\n|error_ref_face_too_small\t|参考图中的人脸过小\n|error_src_large_face_angle\t|用户图需为正脸\n|error_ref_large_face_angle\t|参考图需为正脸\n|error_src_eye_closed\t|用户图中有眼睛闭合\n|error_ref_eye_closed\t|参考图中有眼睛闭合\n|error_src_eye_occluded\t|用户图中眼睛被遮挡\n|error_ref_eye_occluded\t|参考图中眼睛被遮挡\n|error_src_lip_occluded\t|用户图中嘴唇被遮挡\n|error_ref_lip_occluded\t|参考图中嘴唇被遮挡\n|error_inappropriate_ref_case01\t|参考图中双眼周围头发过于贴近眼部，或眼尾旁侧的皮肤区域不够大\n|error_inappropriate_ref_case02\t|参考图中一只眼周围头发过于贴近眼部、或眼尾旁侧的皮肤区域不够大，另一只眼的朝向不够正\n\n---\n\n## 点数消耗\n\n| AI 功能 | 消耗点数 |\n|---|---|\n| AI 仿妆迁移 V1.0 | 2 |\n\n---\n"},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"docs.perfectcorp.com","port":4000,"ipAddress":"216.73.217.126"},"lang":"zh-CN","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"master"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/zh-cn/reference/ai_makeup_transfer","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}