Created
June 5, 2010 05:30
-
-
Save laiso/426336 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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