Build face swap image generator for Android#514
Closed
cliffhop23 wants to merge 3 commits intomicrosoft:mainfrom
Closed
Build face swap image generator for Android#514cliffhop23 wants to merge 3 commits intomicrosoft:mainfrom
cliffhop23 wants to merge 3 commits intomicrosoft:mainfrom
Conversation
Complete Android/Kotlin application that swaps faces between two user-selected photos using on-device ML Kit Face Detection: - FaceDetectionHelper: coroutine-wrapped ML Kit client (ACCURATE mode, all landmarks + contours enabled) - FaceSwapEngine: similarity transform (eye-aligned scale/rotate/ translate), feathered contour/ellipse mask, DST_IN alpha blend - ImageUtils: EXIF-correcting bitmap loader with 1280 px scale cap - MainActivity: gallery picker, progress UI, MediaStore save - Material 3 UI with side-by-side pickers, result card, save/reset https://claude.ai/code/session_01RwA7nEh9vRhCwdCoDiPRbH
Contributor
|
👋 Thanks for contributing @cliffhop23! We will review the pull request and get back to you soon. |
- Add comprehensive README.md with setup, architecture diagram, dependency table, and usage tips - Rename project from "FaceSwapApp" to "Android Face Swap App" in settings.gradle.kts - Update app_name to "AI Face Swap" and subtitle to reflect AI usage https://claude.ai/code/session_01RwA7nEh9vRhCwdCoDiPRbH
- Fix getString() called on Dispatchers.Default (must be on Main thread) - Remove redundant toInt().toFloat() casts in FaceSwapEngine - Rename project from "Android Face Swap App" to "AndroidFaceSwapApp" (spaces in project names can cause Gradle issues) - Bump compileSdk/targetSdk 34 → 35 (Android 15) - Add generated gradlew / gradlew.bat / gradle-wrapper.jar so the app builds out-of-the-box with `./gradlew assembleDebug` - Update .gitignore to track wrapper jar and exclude .gradle/ cache https://claude.ai/code/session_01RwA7nEh9vRhCwdCoDiPRbH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete Android/Kotlin application that swaps faces between two user-selected photos using on-device ML Kit Face Detection:
https://claude.ai/code/session_01RwA7nEh9vRhCwdCoDiPRbH