Commit Graph

15 Commits (eb33df659b4325045497d68bae1589570f8e0eb1)

Author SHA1 Message Date
google-labs-jules[bot] 8b61cc691f Implement ear preservation for Poisson blending.
- Added functionality to preserve target's ears when using Poisson blending.
- Introduced new global variables in `globals.py`:
  - `preserve_target_ears` (boolean flag)
  - `ear_width_ratio`
  - `ear_height_ratio`
  - `ear_vertical_offset_ratio`
  - `ear_horizontal_overlap_ratio`
- Added command-line argument `--preserve-ears` to `core.py`.
- Modified `face_swapper.py` to adjust the Poisson blending mask by
  subtracting calculated ear regions if `preserve_target_ears` is true.
  This aims to reduce artifacts around ears by using the original target
  frame's ear content.
2025-06-24 20:25:09 +00:00
google-labs-jules[bot] 2b61ac140a Implement advanced color correction and Poisson blending.
- Added histogram-based color correction to `face_swapper.py` for improved color matching of the swapped face to the target frame. Controlled by `--color-correction`.
- Integrated Poisson blending (`cv2.seamlessClone`) for smoother face integration, reducing visible seams. Controlled by `--poisson-blending`.
- Added global variables `use_poisson_blending` and `poisson_blending_feather_amount` and corresponding command-line arguments.
- Refined argument parsing in `core.py` for new features.
- Updated `swap_face` logic to incorporate these features and handle potential errors during blending.
2025-06-24 18:15:22 +00:00
qitian 5132f86cdc add mutil language 2025-01-07 14:04:18 +08:00
Mehdi Mousavi 81da9a23ca Fix mouth mask description 2024-12-24 09:51:32 +03:30
Mehdi Mousavi 007867a6f6 Add support for --mouth-mask argument 2024-12-24 09:40:06 +03:30
pereiraroland26 f122006024 updated README.md and created variables for pop dimensions 2024-09-10 14:28:33 +05:30
pereiraroland26@gmail.com 53fc65ca7c Added ability to map faces 2024-09-10 05:40:55 +05:30
Vic P 4f62119c2e Support the following options:
- The live camera display as you see it in the front-facing camera frame (like iPhone's Mirror Front Camera).
- The live camera frame is resizable.
Note: These options are turned off by default. Enabling both options may reduce performance by ~2%.

Signed-off-by: Vic P <vic4key@gmail.com>
2024-08-22 00:35:05 +07:00
Vic P 7313a332c8 Re-enabled the NSFW function (turn-off by default).
@refer to the PR #237 in the `experimental` branch.

Signed-off-by: Vic P <vic4key@gmail.com>
2024-08-21 02:02:00 +07:00
Kenneth Estanislao 69d863b44a Revert "Merge remote-tracking branch 'parent/experimental' into experimental"
This reverts commit df99f6ca17.
2024-08-16 21:03:14 +08:00
Aleksandr Spiridonov df99f6ca17 Merge remote-tracking branch 'parent/experimental' into experimental 2024-08-16 20:28:57 +08:00
Kenneth Estanislao 22abb8c25f Revert "Merge pull request #293 from vic4key/experimental"
This reverts commit eab5ba7027.
2024-08-16 13:47:12 +08:00
Kenneth Estanislao eab5ba7027 Merge pull request #293 from vic4key/experimental
To fix bugs and support more options for the Live function (see details in Commits tab)
2024-08-15 14:21:58 +08:00
Gianfranco Palumbo 99214c7ab1 Stop live mode the preview window is closed 2024-08-14 17:52:42 +02:00
Kenneth Estanislao e616245e3d initial commit
rebranding everything
2023-09-24 21:36:57 +08:00