I've download a lot of images in one directory including
I want to split the directory into two.
I'm looking for a Linux command line tool to filter by face.
You can sorta already do this with Picasa + gData API + GoogleCL.
As you know, Picasa has facial recognition, and the Google Data web API can access this. So the last piece of the puzzle is GoogleCL, which gives you access to Google services (via gData) from the command line.
I'm not sure how easy it is to do this out of the box. Perhaps you'll be the first person to attempt to access Picasa's facial recognition data via GoogleCL and you'll need to add support for it yourself. But GoogleCL already supports at least some Picasa API functions, so it shouldn't be too hard to figure out if you have some programming experience.
There is facedetect, which is a simple Python wrapper for OpenCV:
$ facedetect hasface.jpg 343 392 576 576 $ facedetect -q hasface.jpg;echo $? 0 $ facedetect noface.jpg $ facedetect -q noface.jpg;echo $? 2
Installation in OS X:
curl https://raw.githubusercontent.com/wavexx/facedetect/master/facedetect>/usr/local/bin/facedetect;chmod +x /usr/local/bin/facedetect brew tap homebrew/science;brew install opencv sed -i '' s,/usr/share/opencv/haarcascades/haarcascade_frontalface_alt2.xml,/usr/local/opt/opencv/share/OpenCV/haarcascades/haarcascade_frontalface_alt2.xml, /usr/local/bin/facedetect export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH