diff --git a/README.md b/README.md index 3403621..0dbbcbd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ YotiFaceCapture provides a simplified way of capturing a face. It performs face detection from the front facing camera, analyses those frames and produces an optimised cropped image of the captured face. ## Requirements -- iOS 11.0+ +- iOS 12.0+ - Swift 5.3+ ## Installation @@ -13,7 +13,7 @@ Make sure you've installed and are running the latest version of: ### CocoaPods Add the following to your [`Podfile`](https://guides.cocoapods.org/using/the-podfile.html) and run `pod install` from its directory: ```bash -platform :ios, '11.0' +platform :ios, '12.0' target 'TargetName' do use_frameworks! @@ -80,6 +80,14 @@ func faceCapture(originalImage: UIImage?, didResult result: FaceCaptureResult) { Provide a FaceCaptureConfiguration instance when calling the startAnalyzing method ```swift let faceCaptureConfiguration = FaceCaptureConfiguration(scanningArea: view.frame, - imageQuality: .medium) + imageQuality: .medium, + validationOptions: [.faceNotStraight]) faceCaptureViewController.startAnalyzing(withConfiguration: faceCaptureConfiguration) ``` + +The validation options available are: +```swift +case eyesNotOpen +case faceNotStraight +case faceNotStable(requiredFrames: Int) +``` diff --git a/Samples/CocoaPods/Sample/Podfile b/Samples/CocoaPods/Sample/Podfile index 37941c9..249a3e9 100644 --- a/Samples/CocoaPods/Sample/Podfile +++ b/Samples/CocoaPods/Sample/Podfile @@ -1,4 +1,4 @@ -platform :ios, '11.0' +platform :ios, '12.0' target 'Sample' do use_frameworks! diff --git a/Samples/CocoaPods/Sample/Sample.xcodeproj/project.pbxproj b/Samples/CocoaPods/Sample/Sample.xcodeproj/project.pbxproj index 1b267ba..76b7d2f 100644 --- a/Samples/CocoaPods/Sample/Sample.xcodeproj/project.pbxproj +++ b/Samples/CocoaPods/Sample/Sample.xcodeproj/project.pbxproj @@ -385,7 +385,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -440,7 +440,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = iphoneos; @@ -459,6 +459,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 6VUTP72GG4; INFOPLIST_FILE = "$(SRCROOT)/Sources/Sample/SupportingFiles/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -479,6 +480,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 6VUTP72GG4; INFOPLIST_FILE = "$(SRCROOT)/Sources/Sample/SupportingFiles/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks",