検証済みの機能
人物写真の背景変更
端末上で人物を検出し、周囲の背景を置き換えます。
解決できる問題: A portrait may need a cleaner or differently colored background while keeping the person visible.

できること
- Run on-device portrait subject detection.
- Refine the detected portrait mask.
- Replace the surrounding area with a selected background color.
- Preview the composition before saving.
設定できる項目
- Background color
- Portrait composition and preview
対応する入力
- A portrait image with a detectable person
出力
- Portrait image with a replaced background
ワークフロー
- Choose a portrait with a clearly visible subject.
- Let the on-device model detect the person.
- Inspect the subject edge and composition.
- Choose the replacement background.
- Generate and review the output.
制限事項
- Edge quality depends on the source image, lighting, pose, and model result.
- The first use can require downloading the portrait model.
よくある質問
Is portrait detection performed on the device?
The verified workflow uses an on-device portrait model after its required model asset is available.
Will every edge be detected perfectly?
No. Hair, low contrast, complex backgrounds, and image quality can affect the generated mask, so preview review is required.
プロジェクトの根拠
feature/feature_app/src/main/java/com/wkq/photo/feature/app/aibackground/AiBackgroundFragment.ktfeature/feature_app/src/main/res/values/home_strings.xml