Skip to content

Instantly share code, notes, and snippets.

View nsabine's full-sized avatar

Nick Sabine nsabine

View GitHub Profile
@philipcristiano
philipcristiano / faces_example.py
Created June 18, 2013 14:10
Resize and crop an image based on OpenCV detected faces
import sys
from PIL import Image, ImageDraw
try:
import cv
except ImportError:
print 'Could not import cv, trying opencv'
import opencv.cv as cv