|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface SimpleCapture
This is a minimal definition of a video capture interface as currently used
by the LibCV library.
This generic interface is used to ensure a relative independence from various capture backends. It should be very straightforward to write a wrapper for the existing Processing Capture object implementing this interface to enable its use with the LibCV library.
| Method Summary | |
|---|---|
java.lang.String |
getError()
String description of an error occured previously. |
processing.core.PImage |
getFrame()
Reads the current frame from the internal video capture and converts it into a PImage object |
int |
getHeight()
Retrieves the pixel height of the capture instance |
int |
getWidth()
Retrieves the pixel width of the capture instance |
boolean |
initVideo(java.lang.String deviceID,
int width,
int height,
int fps)
Initializes video capture for the given device. |
void |
shutdown()
Handles freeing up any resources used by the SimpleCapture instance |
| Method Detail |
|---|
java.lang.String getError()
processing.core.PImage getFrame()
int getHeight()
int getWidth()
boolean initVideo(java.lang.String deviceID,
int width,
int height,
int fps)
deviceID - device descriptorwidth - capture frame widthheight - capture frame heightfps - frame rate
JMFSimpleCapture.getError().void shutdown()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||