Refactors the usage of the update_status function to break a
circular import dependency.
- In modules/processors/frame/face_swapper.py:
- Removed direct import of update_status from modules.core.
- Modified pre_start(), process_image(), and process_video()
to accept update_status as a Callable parameter
(status_fn_callback).
- Internal calls now use this passed callback.
- In modules/core.py:
- Updated the calls to pre_start(), process_image(), and
process_video() for frame processors (specifically face_swapper)
to pass the core.update_status function as the
status_fn_callback argument.
This change ensures that face_swapper.py no longer needs to import
modules.core directly for status updates, resolving the ImportError.
- 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>