{"templateId":"api_docs","sharedDataIds":{"apiDocsStore":"api-docs-@l10n/zh-TW/reference/ai_makeup_transfer.yaml","sidebar":"sidebar-@l10n/zh-TW/reference/sidebars.yaml"},"props":{"definitionId":"@l10n/zh-TW/reference/ai_makeup_transfer.yaml","settings":{"baseUrlPath":"/zh-tw/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.216.199"},"lang":"zh-TW","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"master"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/zh-tw/reference/ai_makeup_transfer","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}