Skip to content

A face-aware crop utility using OSX's Vision framework

License

Notifications You must be signed in to change notification settings

alexdong/autocrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autocrop

A high-performance face-aware crop utility using OSX's Vision framework.

This utility takes a photo, detect every face in the image file and save it as a square jpg file in the directory you specified.

Here are a few examples:

# To locate and safe all faces into `Faces` folder
autocrop ~/Documents/Photos/IMG_1772.JPG ~/Documents/Faces/

# To batch process of images, use `find`
find ~/Documents/Photos -name *.JPG -exec autocrop {} ~/Documents/Faces/ \;

# If you need to resize the file to 250x250, use `imagemagick`
find ~/Documents/Faces -name *.jpg -exec convert {} -resize 250x250 {} \;

Improvements

  1. For a portrait mug shot, we might end up with an image not entirely square.

About

A face-aware crop utility using OSX's Vision framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages