-
Notifications
You must be signed in to change notification settings - Fork 4
Rekognition Demo
From the product page:
Amazon Rekognition is a service that makes it easy to add image analysis to your applications. With Rekognition, you can detect objects, scenes, faces; recognize celebrities; and identify inappropriate content in images. You can also search and compare faces. Rekognition’s API enables you to quickly add sophisticated deep learning-based visual search and image classification to your applications.
-
Ensure that you have populated these directive/s on the
.env
file:AWS_REKOGNITION_REGION
-
Run
php artisan config:clear
. -
Send a
POST
request to theaws/rekognition/upload
URI: -
A successful upload should give you a list of celebrities that have been found on the image. Uploading this image yields me:
What would be a practical use case for Rekognition?
If you run a multi-tenant application and don't want people uploading anime avatars on their profile page, preferring that they upload their actual human faces, Rekognition would be a good middleware to include in the validation process.
In addition, you might be running an under-18 website and want to police users who are attempting to upload graphic images, Rekognition might come in handy.
As seen on the Auckland AWS meetup.