Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(8)  |  Derive(0)  |  Import(1)

src/p/y/py2FaceR-0.1.1/src/py2facer/commands/base.py   py2FaceR(Download)
        for filename in self.cmd_config['files']:
            if os.path.splitext(filename)[1].lower() == '.jpg':
                images.append(image.Image(image_path=filename))
        self.LOGGER.info('Loaded %d images', len(images))
        self.LOGGER.info('Parsing facial data from Picasa.')

src/p/y/py2FaceR-0.1.1/src/py2facer/lib/flickr.py   py2FaceR(Download)
from sqlalchemy.orm.session import sessionmaker
import logging
from py2facer.lib.image import Image
import datetime
 

src/p/y/py2FaceR-0.1.1/src/py2facer/tests/image.py   py2FaceR(Download)
    def testBasic(self):
        picasacontact = picasa.Contact('bob', ['bob@gmail.com'], 'simplehash')
        img = image.Image(image_path=tests.TESTFILES['img'])
        img.add_face(google_id=picasacontact)
        self.assertEqual(len(img.people), 1)
    def testKnownImage(self):
        img = image.Image(image_path=tests.TESTFILES['img'])
        self.assertEqual(img.height, 362)
        self.assertEqual(img.width, 585)
 
class TestContainedPerson(unittest.TestCase):
    def setUp(self):
        self.img = image.Image(image_path=tests.TESTFILES['img'])

src/p/y/py2FaceR-0.1.1/src/py2facer/tests/picasa.py   py2FaceR(Download)
    def testAddFaces(self):
        img = image.Image(image_path=tests.TESTFILES['img'])
        self.iniparser.add_people_to_image(img)
        self.assertEqual(len(img._people), 2)
 

src/p/y/py2FaceR-0.1.1/src/py2facer/tests/flickr.py   py2FaceR(Download)
    def setUp(self):
        self.IMAGES = [image.Image(tests.TESTFILES['img']), 
                       image.Image('%s/testdata/007.JPG' % tests.BASEPATH),
                       image.Image('%s/testdata/Nobody.jpg' % tests.BASEPATH)]
        tests.delOldDb()