Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Gem to mantain basical operations on face.com's API.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
Gemfile
Manifest.txt
README.rdoc
faceR.gemspec
init.rb

README.rdoc

This Gem is a very alpha version and is provided as is without any warranty.

I coded it as a convenient and easy interface to face.com's API for a project I'm working on and I must prepone some assumption on using it:

  • you are a brave

  • you will send images with only ONE recognizable face at time

  • you expect some errors and bugs and have the bravery and patience to fix them

If those requirements are met, go on and use it. If not stop reading and trash the gem…

If you are reading this you are brave (or crazy).

A little example of usage:

linkr=Facer::Linker.new(“yourapp”,“yourkey”,“yoursecret”) puts linkr.account.private_namespaces?.inspect puts linkr.account.limits?.inspect

trainSet={ “vanessa_paradis” => [ “”, “”, “”, “”, “”, “” ] }

trainSet.each_pair do |key,value| succ= linkr.faces.associate_multi(value,key,“yournamespace”).inspect puts “Associating #{key}: #{succ}” end

puts linkr.faces.train_all(“clinik”).inspect

puts linkr.faces.recognize(“static1.purepeople.com/articles/7/17/12/7/@/85769-vanessa-paradis-et-johnny-depp-637x0-1.jpg”,“yournamespace”).inspect puts linkr.faces.recognize(“howzar.com/Galleries/Vanessa%20Paradis/vanessa-paradis-32.jpg”,“yournamespace”).inspect puts linkr.faces.recognize(“pictures.directnews.co.uk/liveimages/Old+man+smiling_1500_19112072_0_0_7006461_300.jpg”,“yournamespace”).inspect

Stefano Valicchia (stefano.valicchia@gmail.com)

Something went wrong with that request. Please try again.