Open
Conversation
Adds the UI and logic for users to select a local photo as a virtual camera replacement method. Changes include: - Added TYPE_LOCAL_PHOTO to MethodType. - Added 'Local Photo' option to the camera settings menu. - Updated SettingFragment to handle photo selection: - Launches image chooser for TYPE_LOCAL_PHOTO. - Updates UI text and component visibility accordingly. - Saves the selected photo URI to MultiPreferences. - Added necessary string resources. Note: The actual injection of the photo into the camera feed is not yet implemented and will depend on com.hack.opensdk capabilities.
Introduces foundational work for a real-time face swap feature. Key changes: - Added dependencies for ML Kit, CameraX, and OpenCV (placeholder). - Created FaceSwapPocActivity: - Sets up CameraX for live preview. - Uses ML Kit for face/landmark detection on live feed and source photo. - Implements conceptual OpenCV pipeline for warping and blending (YUV conversion, affine transform, masking, basic blend) and displays on an ImageView. - Includes OpenCV loader logic. - Integrated Face Swap into VCamera settings: - Added TYPE_FACE_SWAP MethodType. - Added menu item and string resources. - Modified SettingFragment to handle selection of Face Swap mode and source photo URI, saving to MultiPreferences. Caveats: - OpenCV core logic in PoC is conceptual and untested. - Integration of processed frames into the main virtual camera output (via com.hack.opensdk) is not yet implemented and requires further investigation of the SDK.
Ben0691
approved these changes
Jun 29, 2025
Ben0691
approved these changes
Jun 29, 2025
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.
No description provided.