Skip to content
Branch: master
Find file History
Latest commit 061dfcd May 7, 2019

Portrait Mode with People Segmentation


In this app, we use the People Segmentation API by Fritz in order to build a portrait mode feature that blurs out the background and focuses on the people in each frame.

For the full tutorial, visit our post on Heartbeat


  • 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.

Getting Started

Step 1: Clone / Fork the fritz-ios-tutorials repository and open FritzImageSegmentationDemo

git clone

Step 2: Create a Fritz Account

In order to use Fritz, please register for a free account and follow the directions for setting up a new app.

Step 3: Setup the project via Cocoapods

Install dependencies via Cocoapods by running pod install from fritz-ios-tutorials/FritzImageSegmentationDemo

cd fritz-ios-tutorials/FritzImageSegmentationDemo
pod install
  • Note you may need to run pod update if you already have Fritz installed locally.

Step 4: Open up a new XCode project

XCode > Open > FritzImageSegmentationDemo.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).

For questions on how to use the demos, contact us:

Setup a Fritz account

iOS SDK instructions


Fritz Docs Home

iOS SDK Reference Docs

You can’t perform that action at this time.