public class MarvinJavaCVAdapter extends Object implements MarvinVideoInterface
| 构造器和说明 |
|---|
MarvinJavaCVAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(int deviceIndex) |
void |
connect(int deviceIndex,
int width,
int height) |
void |
disconnect() |
MarvinImage |
getFrame() |
int |
getFrameNumber() |
int |
getImageHeight() |
int |
getImageWidth() |
void |
loadResource(String path) |
void |
setFrameNumber(int number) |
public void connect(int deviceIndex)
throws MarvinVideoInterfaceException
connect 在接口中 MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic void connect(int deviceIndex,
int width,
int height)
throws MarvinVideoInterfaceException
connect 在接口中 MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic void loadResource(String path) throws MarvinVideoInterfaceException
loadResource 在接口中 MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic void disconnect()
throws MarvinVideoInterfaceException
disconnect 在接口中 MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic int getImageWidth()
getImageWidth 在接口中 MarvinVideoInterfacepublic int getImageHeight()
getImageHeight 在接口中 MarvinVideoInterfacepublic MarvinImage getFrame() throws MarvinVideoInterfaceException
getFrame 在接口中 MarvinVideoInterfaceMarvinVideoInterfaceExceptionpublic int getFrameNumber()
getFrameNumber 在接口中 MarvinVideoInterfacepublic void setFrameNumber(int number)
throws MarvinVideoInterfaceException
setFrameNumber 在接口中 MarvinVideoInterfaceMarvinVideoInterfaceExceptionCopyright © 2018. All rights reserved.