The collection of image filters with swift

SemanticImage

The collection of image filters.

How to use

Setting Up

1, Add SemanticImage to your project as Swift Package with Swift Package Manager.
Or just drag SemanticImage.swift to your project.

2, Import and initialize SemanticImage

import SemanticImage
let semanticImage = SemanticImage()

Requires iOS 15 or above

Filter Collection

Original

Person Mask

let maskImage:UIImage? = semanticImage.personMaskImage(uiImage: yourUIImage)

Swap the background of a person

let swappedImage:UIImage? = sematicImage.swapBackgroundOfPerson(personUIImage: yourUIImage, backgroundUIImage: yourBackgroundUIImage)

GitHub

View Github