|
||||||||||
| 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 .
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. |
java.awt.Image |
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 |
|---|
boolean initVideo(java.lang.String deviceID,
int width,
int height,
int fps)
deviceID - device descriptorwidth - capture frame widthheight - capture frame heightfps - frame rate
void shutdown()
java.awt.Image getFrame()
int getWidth()
int getHeight()
java.lang.String getError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||