This is an AWS Lambda based API that could register and recognize faces using Serverless Framework This Services Requires AWS Lambda, DynamoDB, API Gateway, S3, & Rekognition to support the services
- Make Sure You Configured Your Environment In Serverless.yml first
- After You Configured It Run
$ serverless deploy
$ serverless deploy
After deploying, you should see output similar to:
✔ Service deployed to stack facerecognition-dev
endpoints:
POST - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/face/register
POST - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/face/recognize
functions:
register-face: facerecognition-dev-register-face (20 MB)
recognize-face: facerecognition-dev-recognize-face (20 MB)
index-face: facerecognition-dev-index-face (20 MB)After successful deployment, you can call the created application via HTTP:
curl https://xxxxxxx.execute-api.us-east-1.amazonaws.com/Input this request json to the https://xxxxxxx.execute-api.us-east-1.amazonaws.com/face/register
{
"person_name": "Person Name",
"body": "base64 Format Image"
}Input this request json to the https://xxxxxxx.execute-api.us-east-1.amazonaws.com/face/recognize
{
"body": "base64 Format Image"
}Made With Love By Ilmi ❤️