Project

facer

0.0
No commit activity in last 3 years
No release in over 3 years
Simple wrapper for face.com api.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.4.6
>= 1.16
 Project Readme

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)