Giter Club home page Giter Club logo

facetranslator's Introduction

Face2Book

Technologies Used

  • Facebook Graph API
  • Microsoft Azure Face API
  • Python
  • Swift

How to Run

  1. First, you need to set up the Face Group on MSFT Cognitive Services

    Change the Ocp-Apim-Subscription-Key in


	headers = {
	    # Request headers.
	    'Content-Type': 'application/json',

	    # NOTE: Replace the "Ocp-Apim-Subscription-Key" value with a valid subscription key.
	    'Ocp-Apim-Subscription-Key': '37e02440a4dd4ef2b738acf9e5dd46ac',
	}	

	

in setupPersonGroup.py to your Face API Key.

you may want to change the photo files found in the array peopleInfo to photos of you choosing in the same format as we have

Then run python setupPersonGroup.py

  1. Now you need to train the group

    run python -c import setupPersonGroup as p; p.train() and to check when it is done run python -c import setupPersonGroup as p; p.getStatus()

  2. Now setup some other stuff

    in test.py change the Ocp-Apim-Subscription-Key again as per earlier.

  3. Now start up ngrok

    look up ngrok and start a server on your device, should be using port 8000 copy that server url into the iOS code

  4. cd into the nodeserver folder and run node index.js

  5. use iPhone to take or upload photo, you should be good to go

=======

Inspiration

Adding people on Facebook can be so cumbersome because you have to ask for their username or look them up. We wanted to invent a new way to add people on Facebook that is efficient and fun. So we came up with Face2Book!

What it does

With the Face2Book app, one can use it to snap a selfie of their new friend, and it will automatically pull up their Facebook profile!

How we built it

In the back-end, we used Python to scrape information on users on Facebook (their name and profile picture using their user id) to obtain data. We then send that data to a Microsoft Azure server that has a Face API for it to train. Then it decides if the picture matches up with your friend, and if it does, it pulls up their Facebook profile!

Challenges we ran into

Getting the data set from Facebook Graph API only gets friends who use the Graph API

What we learned

  • Facebook scraping
  • Facebook Graph API
  • Microsoft Azure

What's next for FaceTranslator

Add more data!

Made By:

@campionfellin
@GrayTurtle
@sstevenshang

facetranslator's People

Contributors

campionfellin avatar grayturtle avatar sstevenshang avatar

Stargazers

 avatar

Watchers

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