AmazonRekognition
Overview
This tutorial covers how to create an Amazon Web Services account, how to set up a camera on the raspberry pi, and how to run Amazon's facial Rekognition using a picture taken from the pi. Before we can run facial recognition we must create an AWS user, create a S3 bucket, and upload pictures to this S3 bucket. The final product will be able to calculate the similarity between a picture taken on the pi with various images saved in the AWS bucket.
Materials/Prerequisites
- Atom, or another source code editor
- A Raspberry Pi
- A Pi camera
Process
Setting up AWS account:
1.) Visit the following URL and click on sign into console, create a new AWS account, and proceed by entering your email, password and account name.
https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/
2.) Follow the following link to download the AWS SDK for python (Boto3)
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html#installation
3.) After completing the registration process and confirming your account, sign into the console and open IAM console, choose users then add user.
- Give your user a name, and proceed with programmatic access.
- Add the following permissions to user: AmazonS3FullAccess, AmazonRekognitionFullAccess, and AmazonS3ReadOnlyAccess
- After creating user click on security credentials and download the given access key and access password and store in a safe file. These credentials should not be shared nor pushed to github.
4.) Next go to services, then S3, then create bucket, note the region and name for later use. Enable static website hosting and the ACL permissions.
5.) Next we want to upload image from your computer and add to bucket to test for facial similarity with the picture you will take. Click upload and choose image file (preferably saved as a .jpg) from computer.