Skip to content

Instantly share code, notes, and snippets.

@laiso
Created June 5, 2010 05:30
Show Gist options
  • Save laiso/426336 to your computer and use it in GitHub Desktop.
Save laiso/426336 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# coding: utf-8
# (http://github.com/Kami/python-face-client
# "Kami's python-face-client at master - GitHub")
from face_client import face_client
import pit
config = pit.Pit.get(
"api.face.com", {'require':{
'apikey': 'api key',
'apisecret': 'api key secret',
}}
)
def main():
eities = (
'http://a3.twimg.com/profile_images/839266329/twitter.png', # EITA orig
'http://sankei.jp.msn.com/photos/entertainments/entertainers/080326/tnr0803261615010-p9.jpg' # EITA other
)
client = face_client.FaceClient(
config.get('apikey'),
config.get('apisecret'),
)
detects = [client.faces_detect(eita) for eita in eities]
print detects
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment