Skip to content

Rekognition Demo

JP edited this page Oct 31, 2017 · 3 revisions

About Rekognition

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.

Steps

  1. Ensure that you have populated these directive/s on the .env file:

    • AWS_REKOGNITION_REGION
  2. Run php artisan config:clear.

  3. Send a POST request to the aws/rekognition/upload URI:

    rekognition-request

  4. A successful upload should give you a list of celebrities that have been found on the image. Uploading this image yields me:

    aws-rekognition-face-matches

Questions

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.

Clone this wiki locally