DeepEraseKit is a universal Swift package for iOS and macOS that removes backgrounds in real time while capturing video. Powered by Apple's Vision framework, it supports multiple background options: none, blur, color, and image, making it ideal for virtual backgrounds and augmented reality applications.
Trim3.mov
- Real-time Background Removal: Uses Vision framework for seamless segmentation.
- Multiple Background Modes:
- None (transparent background)
- Blur (adjustable intensity)
- Color (custom solid color background)
- Image (replace background with a custom image)
- Universal Support: Works across all iOS devices.
- Optimized for Performance: Uses Metal and Core Image for efficient processing.
- Open Xcode and go to File > Swift Packages > Add Package Dependency
- Enter the repository URL:
/~https://github.com/abbasjoyia99/DeepEraseKit.git
- Choose the latest version and add it to your project.
import DeepEraseKit
let backgroundManager = DeepEraseKit()
backgroundManager.setBackground(.blur(radius: 10.0))
backgroundManager.startCapturing()
backgroundManager.setBackground(.color(UIColor.blue))
backgroundManager.setBackground(.image(UIImage(named: "background")))
- iOS 15.0+
- Swift 5.9
- Vision Framework
We welcome contributions! Please submit a pull request or open an issue.
DeepEraseKit is available under the MIT license. See the LICENSE file for more details.