Running py2FaceR

Workflow

Syncing facial data from Picasa to flickr depends on several bits of information
  • Your contacts from Picasa (contacts.xml)
  • The recognized faces in an image (.picasa.ini)
  • The image (some jpg, which has already been uploaded to flickr in your account)

Thus running py2FaceR loosely depends on a particular image work-flow. The one I’ve been using is:

  1. Get the raw data from the camera
  2. Edit / Clean / Rename the photos and place those cleaned photos in a separate folder
  3. Have Picasa go through those cleaned photos and do it’s facial recognition on the edited photos. Edit the faces in picasa if needed.
  4. Upload the photos to flickr (I actually use the the flickr uploadr for this)
  5. Run py2FaceR (see Running from the command line)

Config File

This area of the docs will be filled in later. For now the template config file supplied with the code should have enough detail to get started. Please file a bug report if it is not =)

DEFAULT - db_url - sqlite:///filename CONTACTS - contacts_path (used?)

py2FaceR depends on a sqlite database but should in theory work with any database supported by SQLAlchemy.

Running from the command line

py2FaceR needs to link your Google contacts to your flickr contacts. Thus the command:

py2FaceR.py sync-contacts -c config.conf

Note

The linking is based on the e-mail address. Thus if you have bob@gmail.com but he’s using bob@yahoo.com for his flickr contact e-mail then he won’t be linked. To make it work your Google contact needs to have the e-mail address they registered with flickr. py2FaceR will try every e-mail address you have for a contact until it either finds them or runs out of addresses.

Once the mapping of Google contacts to flickr contacts is complete then it’s possible to push some facial data:

py2FaceR.py sync-photos -c config.conf ...

There are a couple ways to link photos. If you want everything in a directory then -d DIR is for you. This can be specified multiple times to go through several directories in one go. Individual files can be specified with -f FILE, and the -d command, the -f command can be specified multiple times.

Project Versions

Table Of Contents

Previous topic

Installing

Next topic

Change Log

This Page