iOS Swift project code for identifying people using Amazon Rekognition
First we will need to provision the backend services for the mobile app. Click on link below to execute the cloudformation template. The template is also added to this repository
Note the identityPoolId that is provided in the output section of your cloudformation stack when complete. This will be used later in the mobile app.
App is forked and modified from this blog: AWS Mobile Blog - Using Amazon Rekognition to detect celebrities in an iOS app.
- Enter the Cognito Identity Pool Id in the AppDelegate.swift file under the Initialize Identity Provider section.
- Run
pod install --repo-update
to get the required Pods. Your Podfile already has the dependencies listed. - Since no faces have been added yet to the rekognition collection, go to the s3 bucket created by the cloudformation template. The name of the bucket was requested as a parameter.
- Drop an image of yourself or someone you want to identify into the bucket using AWS Console. Note that deleting a object from bucket will remove the face from the index.
- Provide a Tag for the object called Name with the full name of the person as seen below:
This sample code is made available under a modified MIT license. See the LICENSE file.