Skip to content

Amazon rekognition face search sample

Notifications You must be signed in to change notification settings

iwstkhr/rekognition-face-search-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Rekognition Face Search Sample

This sample tries the following:

  1. Indexing faces in an Amazon Rekognition face collection
  2. Searching for faces detected in an image

Usage

Indexing faces

python index_faces.py \
  --collection-id test-collection \
  "images/portraits/Donald_Trump_official_portrait.jpg" \
  "images/portraits/Joe_Biden_presidential_portrait.jpg"

Searching for faces

You can check result images in images/results/ directory.

python search_faces.py \
  --collection-id test-collection \
  "images/Official_portrait_of_President_Obama_and_Vice_President_Biden_2012.jpg" \
  "images/P20211101AS-0357_(51846489866).jpg"

Cleaning up the face collection

aws rekognition delete-collection --collection-id test-collection

Sample images

All sample images in this repository are under public domain.

Sample result images are stored in images/results directory.

One of those is here. You can find an image to be used for searching on upper-left.

About

Amazon rekognition face search sample

Topics

Resources

Stars

Watchers

Forks

Languages