Menu

Build 'Find My Photos' for Event Galleries with Amazon Rekognition and Node.js
📰

Build 'Find My Photos' for Event Galleries with Amazon Rekognition and Node.js

DEV Community: aws·Toshita Pandey·1 day ago
#g8i5wxrB
#devtoaws#devto#dev#face#selfie
Reading 0:00
15s threshold

After a wedding, a conference or a marathon, the photographer uploads three thousand photos and every guest asks the same question: which ones am I in? Scrolling through a gallery that size is miserable. Uploading one selfie and getting back only your photos is a feature people actually remember.

This tutorial builds that feature with Amazon Rekognition's face collections, S3 and a small Node.js service. By the end you will have three pieces: indexing every face in a gallery, searching that index with a selfie, and the cost and privacy decisions you need to make before shipping it.

You will need an AWS account, Node.js 18 or later, and the AWS SDK for JavaScript v3.

npm install @aws-sdk/client-rekognition @aws-sdk/client-s3

Enter fullscreen mode

Exit fullscreen mode

How Rekognition face search works

Rekognition does not store your photos. When you index an image, it detects each face, turns it into a face vector, and stores that vector in a collection along with an id you choose.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.