(new) (Opens) Processing (Saves) (Exports) Java Java HTML
Getting Started with Processing Casey Reas and Ben Fry. Processing: A Programming Handbook for Visual Designers and Artists Casey Reas and Ben Fry Built with Processing and
C: Documents and Setteing USER My Documents
PImageimage image(pimage, x, y, width, height);
data
PFont f = loadfont( "" ); f textfont(f, size); text("", x, y);
import ; candysvg dfx javascriptjavascript net opengl pdf PDF serial video xml XML
WindowsvideoVDIG(QuickTime ) WinVDIG1.0.1 () Improved glm code http://www.eden.net.nz/7/20071008/ WinVDIG 1.0.1 windows/system32/vsdump.ax windows/system32/quicktime/ () QuickTime/QTComponent/VsVDIG.qtx
Capture(this) Capture camera = new Capture(this, width, height [, device name ], frame rate]); captureevent() read() void captureevent() { camera.read(); } stop() camera.stop(); crop() camera.crop(x, y, width, height);
OpenCV ROI() absdiff() allocate() blobs() blur() brightness() capture() cascade() contrast() convert() copy() detect() flip() image() interpolation() invert() jump() loadimage() movie() pixels() read() remember() restore() stop() threshold()
For Windows, download the OpenCV release version 1.0 For MacOS X, dowload the opencv-framework-1.1.dmg OpenCV Processing examples
import hypermedia.video.*; import java.awt.rectangle; OpenCV opencv; void setup() { } size( 320, 240 ); opencv = new OpenCV( this ); opencv.capture( width, height ); opencv.cascade( OpenCV.CASCADE_FRONTALFACE_ALT ); public void stop() { opencv.stop(); super.stop(); } void draw() { } // grab a new frame opencv.read(); // proceed detection Rectangle[] faces = opencv.detect( 1.2, 2, OpenCV.HAAR_DO_CANNY_PRUNING, 40, 40 ); // display the image image( opencv.image(), 0, 0 ); // draw face area(s) nofill(); stroke(255,0,0); for( int i=0; i<faces.length; i++ ) { rect( faces[i].x, faces[i].y, faces[i].width, faces[i].height ); }