Skip to content

Instantly share code, notes, and snippets.

View patrickdown's full-sized avatar

Patrick Down patrickdown

View GitHub Profile
@patrickdown
patrickdown / extractfaces.pyde
Created May 3, 2017 21:16
Extract faces from image with Processing 3, Python and OpenCV
add_library('video')
add_library('opencv_processing')
import collections
contours_over_time = collections.deque(maxlen=10)
video = Capture(this, 640/2, 480/2)
opencv = OpenCV(this, 640/2, 480/2);
@patrickdown
patrickdown / movement.pyde
Created May 3, 2017 21:15
Movement detection with Processing 3, Python and OpenCV
add_library('video')
add_library('opencv_processing')
import collections
contours_over_time = collections.deque(maxlen=10)
video = Capture(this, 640/2, 480/2)
opencv = OpenCV(this, 640/2, 480/2);
@patrickdown
patrickdown / facerect.pyde
Last active May 3, 2017 21:15
Face detection with Processing 3, Python and OpenCV
add_library('video')
add_library('opencv_processing')
import collections
video = Capture(this, 640/2, 480/2)
opencv = OpenCV(this, 640/2, 480/2);
rects_over_time = collections.deque(maxlen=30)
@patrickdown
patrickdown / cubemap.pov
Created September 21, 2016 22:02
You can use this POV scene to make cube map. This is done by using the POV animation clock to create a 6 frame animation where the camera points each axis in the positive and negative directions.
// ==================================================================
// Persistence of Vision Ray Tracer Scene Description File
//
// You can use this POV scene to make cube map. This is done
// by using the POV animation clock to create a 6 frame animation
// where the camera points each axis in the positive and negative
// directions.
// ==================================================================
//
// POV will need an INI entry to define size, antialiasing