ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ASYNC_SAVEFRAME, DISABLE_BUFFER_READING, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_KEY_REPEAT, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_ASYNC_SAVEFRAME, ENABLE_BUFFER_READING, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_KEY_REPEAT, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ESC, EXCLUSION, FX2D, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADRATIC_VERTEX, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPAN, SPHERE, SPOT, SQUARE, SUBTRACT, SVG, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
Constructor and Description |
---|
OpenIMAJ() |
OpenIMAJ(processing.core.PApplet parent) |
Modifier and Type | Method and Description |
---|---|
processing.core.PImage |
asPImage(MBFImage frame) |
MBFImage |
capture()
Capture an
MBFImage |
MBFImage |
capture(boolean setToCurrentFrame) |
processing.core.PImage |
capturePImage()
Given an initialised video capture, capture a
PImage |
processing.core.PImage |
capturePImage(boolean setToCurrentFrame)
Given an initialised video capture, capture a
PImage |
void |
dispose() |
ArrayList<processing.core.PShape> |
faces()
|
void |
initFace(int min)
Initialise face detection with minimum face size
|
void |
pre() |
void |
resize(int width,
int height) |
void |
startCapture()
Start a video capture, default size, default device
|
void |
startCapture(int width,
int height)
Initialise video capture on the default device
|
void |
startCapture(int width,
int height,
int device)
Initialise video capture
|
void |
updateImage()
Updates the OpenIMAJ held
MBFImage instance from the whole parent PApplet |
void |
updateImage(int[] pixels,
int width,
int height)
Updates the OpenIMAJ held
MBFImage instance |
void |
updateImage(MBFImage capture) |
void |
updateImage(processing.core.PImage capture) |
public OpenIMAJ(processing.core.PApplet parent)
parent
- public OpenIMAJ()
public void initFace(int min)
min
- public void startCapture()
public void startCapture(int width, int height)
width
- height
- public void startCapture(int width, int height, int device)
width
- height
- device
- public processing.core.PImage capturePImage()
PImage
public processing.core.PImage capturePImage(boolean setToCurrentFrame)
PImage
setToCurrentFrame
- whether the current openimaj frame (for analysis) should be set from capturepublic void pre()
public void updateImage()
MBFImage
instance from the whole parent PApplet
public void updateImage(processing.core.PImage capture)
capture
- public void updateImage(MBFImage capture)
capture
- public void updateImage(int[] pixels, int width, int height)
MBFImage
instancepixels
- the pixels to use as the MBFImagewidth
- the width of the imageheight
- the height of the imagepublic void dispose()
public void resize(int width, int height)
public ArrayList<processing.core.PShape> faces()
HaarCascadeDetector
, return an ArrayList
of
PShape
instances. Note the PShape
instances have no fill and
a colour: 255,0,0