Coder Social home page Coder Social logo

aws_face_rekognition's Introduction

aws_face_rekognition

Pre-requisites

  1. python
  2. aws cli

Steps

  1. get aws cli info from aws educate account -> vocareum workbench -> account details
  2. Copy paste the info in .aws/credentials in the local machine
  3. Run face_rekognition.py

Note: aws cli info needs to get renewed every 1 hour

About the code
This is the facial rekognition feature under amazon analytics services provided by the AWS itsself.
Note that you will need an aws account few credits to run the code effectively.
It uses the detect_faces method by boto3
Refer this documentation for more available features by boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rekognition.html
This program can rekognize details like age range, gender, sunglasses, smile, moustache and beard (if the face is detected to be Male) and other emotions in the image that is provided in the "file".
Finally the facial attributes will be saved in image_info.json file in sorted JSON format.
The commented code can be run to see the full emotion type and confidence of provided image and to view all the available facial attributes provided by boto3's detect_faces.

The Image used for testing the program is "male.jpg" and can be found in Images folder.

Expected Output

The detected face is between 31and 47 years old.
The detected face is of Male.
The detected face is not wearing a sunglass.
The detected face is not Smiling.
The detected face has Beard.
The detected face has Mustache.
The detected face is CONFUSED with 65.20594787597656% confidence.

aws_face_rekognition's People

Contributors

amarnaga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.