Example #1
0
    def get(self):
        url = self.request.arguments.get('url', [None])[0]
        if not url:
            raise ValueError('f**k you')

        logger.debug('mustaching %s' % url)

        result = face.find_faces(url)
        filename = stachify.add_stache(url, result)

        self.redirect("/%s.jpg" % filename)
Example #2
0
import sys

import stachify
import face

if __name__ == '__main__':
    faces = face.find_faces(sys.argv[1])
    print stachify.add_stache(sys.argv[1],faces)