Skip to content

Instantly share code, notes, and snippets.

@philipcristiano
Created June 18, 2013 18:57
Show Gist options
  • Save philipcristiano/5808197 to your computer and use it in GitHub Desktop.
Save philipcristiano/5808197 to your computer and use it in GitHub Desktop.
face_buffer = 0.5 * (target_height - all_faces_height)
top_of_crop = top_of_faces - face_buffer
coords = (0, top_of_crop, target_width, top_of_crop + target_height)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment