CafSDK is a comprehensive iOS SDK that provides modular solutions for document detection and face liveness validation. It includes the following components:
- DocumentDetector: A framework for secure document detection, powered by TensorFlow Lite.
- [CafFaceLiveness]: A modular framework for face liveness validation, supporting iProov and FaceTec 2D as independent or combined providers.
This SDK is designed to be flexible, allowing developers to integrate only the components they need.
Deployment Info | Version |
---|---|
iOS Target | 13.0+ |
Xcode | 15.4+ |
Swift | 5.10+ |
Add the following dependency to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/combateafraude/caf-ios-sdk.git", from: "1.0.0")
]
Then, add the desired targets to your app:
.target(
name: "YourApp",
dependencies: [
.product(name: "CafSDK", package: "CafSDK"), // Full SDK
.product(name: "DocumentDetector", package: "CafSDK"), // Only DocumentDetector
.product(name: "CafFaceLiveness", package: "CafSDK"), // Only CafFaceLiveness
.product(name: "IproovProvider", package: "CafSDK"), // Optional iProov provider
.product(name: "FaceTec2DProvider", package: "CafSDK"), // Optional FaceTec 2D provider
]
)
Add the following to your Podfile:
# Full SDK
pod 'CafSDK'
# Only DocumentDetector
pod 'CafSDK/DocumentDetector'
# Only CafFaceLiveness
pod 'CafSDK/CafFaceLiveness'
# Optional iProov provider
pod 'CafSDK/IproovProvider'
# Optional FaceTec 2D provider
pod 'CafSDK/FaceTec2DProvider'
Then, run pod install.
To import and use DocumentDetector or CafFaceliveness in your app, add the following import statement at the top of your Swift files:
import DocumentDetector
import CafFaceliveness
When using our SDKs, please make sure that you agree with our Privacy Policy and our Terms and Conditions of Use.