VerSDK is a Framework helped with recognition text in documents and suitable take verification selfie. The SDK calls the user interface for photography and returns the result of text recognition or face detection.
Please, use GitHub Issues for reporting a bug or requesting a new feature.
VerSDK can be installed with Swift Package Manager.
- In Xcode, open your project and navigate to File → Swift Packages → Add Package Dependency...
- Paste the repository URL (
https://github.com/GrigoryShushakov/versdk.git
) and click Next. - For Rules, select Version (Up to Next Major) and click Next.
- Click Finish.
Adding Package Dependencies to Your App
- For text recognition please call
textRecognition
sdk method in your application. Method returns array of recognized strings or Error with localized description.
VerSDK.shared.textRecognition { result in
switch result {
case .success(let prediction):
// Text recognition result - [String]
case .failure(let error):
showError(error)
}
}
- For face detection please call
faceDetection
sdk method in your application. Method returns UIImage or Error with localized description.
VerSDK.shared.faceDetection() { result in
switch result {
case .success(let image):
// Face detection image - UIImage
case .failure(let error):
showError(error)
}
}
VerSDK requires camera permissions for capturing photos. Your application is responsible to describe the reason why camera is used. You must add NSCameraUsageDescription
value to info.plist of your application with the explanation of the usage.
- iOS 13.0+
- Swift 5.1+ (Library is written in Swift 5.3)
Grigory Shushakov
VerSDK is available under the MIT license. See the LICENSE file for more info.