Skip to content

Detect faces in photos and crop to faces automatically. Make a landscape format slide show for digital frames or monitors. Uses Google Vision API to detect faces.

License

Notifications You must be signed in to change notification settings

vvanhee/face-detect-slideshow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0cf5a0f · Nov 6, 2016

History

7 Commits
Nov 6, 2016
Nov 6, 2016
Nov 6, 2016

Repository files navigation

face-detect-slideshow

Detect faces in photos and crop to faces automatically. Make a landscape format slide show for digital frames or monitors. Uses Google Vision API to detect faces.

Do you have a digital frame? Are you tired of the frame shrinking your portrait photos to fit into the landscape format of the frame, making them almost unviewable and leaving big black boxes surrounding the image? Tired of your frame filling up with your huge image files, which are much higher resolution than the frame? Worry no more!

This project will detect the faces in your photos, center on the faces, and crop to fit any size landscape frame!

WARNING! your original photos will be DELETED after being cropped!!!

Installation

  1. Set up a new project with the Google Vison API. Get a JSON credential file for the project, install the API into Python
  2. Place the JSON file in the same directory as the python file you downloaded from this project
  3. Make sure you have installed Pillow into Python, as well as piexif (pip install Pillow, pip install piexif)
  4. Edit the python file found in this project -- add the path to your photos, your JSON file path, the pixel width and height of your frame.

About

Detect faces in photos and crop to faces automatically. Make a landscape format slide show for digital frames or monitors. Uses Google Vision API to detect faces.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages