In this app, we use the Style Transfer API by Fritz AI in order to build different camera filters inspired by some of the greatest artists like Van Gogh and Picasso.
For the full tutorial, visit our post on Heartbeat.
Fritz AI is the machine learning platform for iOS and Android developers. Teach your mobile apps to see, hear, sense, and think. Start with our ready-to-use feature APIs or connect and deploy your own custom models.
- Xcode 10.2 or later.
- Xcode project targeting iOS 10 or above. You will only be able to use features in iOS 11+, but you still can include Fritz in apps that target iOS 10+ and selectively enable for users on 11+.
- Swift projects must use Swift 4.1 or later.
- CocoaPods 1.4.0 or later.
Step 1: Create a Fritz AI Account
Sign up for a free account on Fritz AI in order to get started.
Step 2: Clone / Fork the fritz-examples repository and open FritzStyleTransferDemo
git clone https://github.com/fritzlabs/fritz-examples.git
Step 3: Setup the project via Cocoapods
Install dependencies via Cocoapods by running
pod install from
cd fritz-examples/iOS/FritzStyleTransferDemo pod install
- Note you may need to run
pod updateif you already have Fritz installed locally.
Step 4: Open up a new XCode project
XCode > Open > FritzStyleTransferDemo.xcworkspace
Step 5: Run the app
Attach a device or use an emulator to run the app. If you get the error "Please download the Fritz-Info.plist", you'll need to register the app with Fritz (See Step 2).
Join the community
For any questions or issues, you can: