π swapper-rs is a high-performance face-swapping application built with Rust!
swapper-rs leverages Rust's performance and safety features to achieve fast and stable face-swapping functionality. This project is ideal for applications involving image processing and computer vision, such as special effects, deep learning research, and more.
π§ Early Development Stage π§
This project is still in its early stages, and many features are not yet implemented. It is not recommended for non-developers at this time.
- β‘ High Performance: Optimized with Rust for fast face-swapping operations.
- π Memory Safety: Avoids common memory management issues found in C/C++.
- πΌοΈ Cross-Platform: Runs on macOS, Linux, and Windows.
- π§ Advanced AI: Utilizes ONNX Runtime (ORT) for efficient deep learning inference.
- π Smart Recognition: Integrates advanced face detection and feature matching technology.
At this time, swapper-rs does not support installation via cargo install.
To build from source:
git clone https://github.com/yourusername/swapper-rs.git
cd swapper-rs
cargo build --release./swapper-rs --input face1.jpg --swap face2.jpg --output result.jpgExample:
./swapper-rs -i person1.jpg -s person2.jpg -o swapped.jpg- ONNX Runtime (ORT) (for deep learning inference)
- OpenCV (for face detection and image processing)
- ndarray (for efficient array computations)
- image (for loading and saving images)
We welcome PRs and issues! If you have suggestions or improvements, feel free to contribute.
git clone https://github.com/yourusername/swapper-rs.git
cd swapper-rs
git checkout -b my-feature
# Start developing