Project

yearbook

0.0
No commit activity in last 3 years
No release in over 3 years
Easy face-cropping
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8.4
>= 0
~> 2.14.1

Runtime

 Project Readme

Yearbook

A convenience for cropping and outputting images, by Dan Nguyen (@dancow)

A very thin wrapper around ruby-opencv and rmagick (which themselves are wrappers around OpenCV and ImageMagick + GraphicsMagick) for producing face-cropped images from a source image.

This is in very-early stage...I'm using it mostly as a quickie image cropper for various projects, as well as a way to learn the cool thor gem.

Has a few issues with painting-type images.

Installation

Load all the dependencies mentioned above (ha!)

Then:

gem install yearbook

Usage

In Ruby

require 'yearbook'

image = Yearbook::Image.new('path/to/somebody.jpg')
image.clip_and_print_best_face('output/to/somebodys-face.jpg')

Command-line tool

yearbook face george-washington.jpg
# will print out to "george-washington-face.jpg" by default