검증된 기능

인물 배경 교체

기기에서 인물을 감지하고 주변 배경을 교체합니다.

해결하는 문제: 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

작업 흐름

  1. Choose a portrait with a clearly visible subject.
  2. Let the on-device model detect the person.
  3. Inspect the subject edge and composition.
  4. Choose the replacement background.
  5. 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.kt
  • feature/feature_app/src/main/res/values/home_strings.xml
관련 가이드 읽기