Giter Site home page Giter Site logo

lexagr / facerekognition-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyberferret/facerekognition-demo

0.0 2.0 0.0 85 KB

A demonstration app for Amazon's Rekognition API using Sinatra

Ruby 2.64% CSS 0.34% JavaScript 95.84% HTML 1.19%

facerekognition-demo's Introduction

FaceRekognition-Demo

This is a tiny demo application which demonstrates the Amazon AWS 'Rekognition' face and image recognition API, as well as the 'Polly' speech synthesis API.

It uses the JPEG Camera library to take a photo from your PC/device onboard camera and send the facial data to Amazon for comparison and identification.

Full blog post about this project is here: http://devan.blaze.com.au/blog/2017/3/13/building-a-face-recognition-app-in-less-than-an-hour

Prerequisites

You will need Ruby installed on your development machine (Note: NOT Ruby on Rails, just plain Ruby language). This app uses the light weight Sinatra framework to do all the back end heavy lifting.

Before running this web app, you will need to set up a .env file in the project folder with your Amazon IAM key and secret (as per the blog post above).

export AWS_KEY=<your IAM key here>
export AWS_SECRET=<your IAM secret here>

If you are using Linux/OS X, then you can just run the above commands in your terminal or shell to set up the environment variables. Windows users can type the following two lines into their DOS prompt:

export AWS_KEY=<your IAM key here>
export AWS_SECRET=<your IAM secret here>

Once that is done, you can install all dependencies by typing:

bundle install

Then run the web app by typing:

ruby faceapp.rb

This will start a local web server, listening on port 4567. Then it is a matter of visiting the following URL in your web browser:

http://localhost:4567

Feel free to fork and improve this simple demo. Any issues, contact me via Twitter @dsabar

facerekognition-demo's People

Contributors

cyberferret avatar

Watchers

James Cloos avatar  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.