https://github.com/iwstkhr/aws-rekognition-face-search-example
Amazon rekognition face search sample
https://github.com/iwstkhr/aws-rekognition-face-search-example
aws face-search rekognition
Last synced: 3 months ago
JSON representation
Amazon rekognition face search sample
- Host: GitHub
- URL: https://github.com/iwstkhr/aws-rekognition-face-search-example
- Owner: iwstkhr
- Created: 2022-08-28T12:18:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T15:56:52.000Z (9 months ago)
- Last Synced: 2025-02-23T20:42:20.851Z (3 months ago)
- Topics: aws, face-search, rekognition
- Language: Python
- Homepage:
- Size: 2.25 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```shell
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.```shell
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
```shell
aws rekognition delete-collection --collection-id test-collection
```---
## Sample images
All sample images in this repository are under [public domain](https://en.wikipedia.org/wiki/Public_domain).- https://commons.wikimedia.org/wiki/File:Donald_Trump_official_portrait.jpg
- https://commons.wikimedia.org/wiki/File:Joe_Biden_presidential_portrait.jpg
- https://commons.wikimedia.org/wiki/File:Official_portrait_of_President_Obama_and_Vice_President_Biden_2012.jpg
- https://commons.wikimedia.org/wiki/File:P20211101AS-0357_(51846489866).jpgSample 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.
![]()