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 MarvinVideoInterface
MarvinVideoInterfaceException
public void connect(int deviceIndex, int width, int height) throws MarvinVideoInterfaceException
connect
in interface MarvinVideoInterface
MarvinVideoInterfaceException
public void loadResource(java.lang.String path) throws MarvinVideoInterfaceException
loadResource
in interface MarvinVideoInterface
MarvinVideoInterfaceException
public void disconnect() throws MarvinVideoInterfaceException
disconnect
in interface MarvinVideoInterface
MarvinVideoInterfaceException
public int getImageWidth()
getImageWidth
in interface MarvinVideoInterface
public int getImageHeight()
getImageHeight
in interface MarvinVideoInterface
public MarvinImage getFrame() throws MarvinVideoInterfaceException
getFrame
in interface MarvinVideoInterface
MarvinVideoInterfaceException
public int getFrameNumber()
getFrameNumber
in interface MarvinVideoInterface
public void setFrameNumber(int number) throws MarvinVideoInterfaceException
setFrameNumber
in interface MarvinVideoInterface
MarvinVideoInterfaceException