The SDK starts by giving you access to the Svrf API, home to the largest search engine for augmented reality and virtual reality content. If you're looking to add face filters to your app, it also allows your users to stream ARKit compatible 3D face filters.
ARKit Face Tracking Requirements
ARKit's face tracking requires an iOS device with front-facing TrueDepth camera - TrueDepth camera - a depth sensing camera created by Apple. It interprets face data by projecting and analyzing over 30,000 invisible dots to create a depth map of your face and also captures an infrared image of your face. Supported devices include: iPhone X, iPhone XS, iPhone XS Max, iPhone XR, iPad Pro (11-inch), and iPad Pro (12.9-inch, 3rd generation). . Supported devices include:
- iPhone X, iPhone XS, iPhone XS Max, or iPhone XR.
- iPad Pro (11-inch) or iPad Pro (12.9-inch, 3rd generation).
To integrate face tracking for face filters on other iOS devices, a third-party face tracking library is required.
CocoaPods is a dependency manager for Cocoa projects. Enter the following command to install CocoaPods:
# Xcode 9 + 10 sudo gem install cocoapods
The process may take a moment, please wait. For further installation instructions, please read the CocoaPods installation guide.
If you don't have a Podfile, you can create one by running the command
pod init in your project root. Open your project's Podfile and add the SvrfSDK dependency:
platform :ios, '12.0' target 'YourTargetName' do use_frameworks! pod 'SvrfSDK' end
To install the SvrfSDK into your Xcode project, run the following command:
Note: If you saw "Unable to satisfy the following requirements" issue during pod install, please run the following commands to update your pod repo and install the pod again:
pod repo update && pod install
If you prefer not to use dependency manager, you can integrate the SvrfSDK into your project manually.
ARKitFaceFilterDemo - An example of the SvrfSDK in Swift.
Updated 9 months ago
Learn how to authenticate your API Key so you can make your first requests.