public class MarvinJavaCVAdapter extends java.lang.Object implements MarvinVideoInterface
| Constructor and Description |
|---|
MarvinJavaCVAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(int deviceIndex) |
void |
connect(int deviceIndex,
int width,
int height) |
void |
disconnect() |
MarvinImage |
getFrame() |
int |
getFrameNumber() |
int |
getImageHeight() |
int |
getImageWidth() |
void |
loadResource(java.lang.String path) |
void |
setFrameNumber(int number) |
public void connect(int deviceIndex)
throws MarvinVideoInterfaceException
connect in interface MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic void connect(int deviceIndex,
int width,
int height)
throws MarvinVideoInterfaceException
connect in interface MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic void loadResource(java.lang.String path)
throws MarvinVideoInterfaceException
loadResource in interface MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic void disconnect()
throws MarvinVideoInterfaceException
disconnect in interface MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic int getImageWidth()
getImageWidth in interface MarvinVideoInterfacepublic int getImageHeight()
getImageHeight in interface MarvinVideoInterfacepublic MarvinImage getFrame() throws MarvinVideoInterfaceException
getFrame in interface MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic int getFrameNumber()
getFrameNumber in interface MarvinVideoInterfacepublic void setFrameNumber(int number)
throws MarvinVideoInterfaceException
setFrameNumber in interface MarvinVideoInterfaceMarvinVideoInterfaceException