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(“”,“yournamespace”).inspect puts linkr.faces.recognize(“”,“yournamespace”).inspect puts linkr.faces.recognize(“”,“yournamespace”).inspect
Stefano Valicchia (stefano.valicchia@gmail.com)