VideoSink.Kind
Constructor and Description |
---|
CvSink(java.lang.String name)
Create a sink for accepting OpenCV images.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getError()
Get error string.
|
long |
grabFrame(Mat image)
Wait for the next frame and get the image.
|
long |
grabFrame(Mat image,
double timeout)
Wait for the next frame and get the image.
|
long |
grabFrameNoTimeout(Mat image)
Wait for the next frame and get the image.
|
void |
setDescription(java.lang.String description)
Set sink description.
|
void |
setEnabled(boolean enabled)
Enable or disable getting new frames.
|
enumerateSinks, equals, free, getDescription, getHandle, getKind, getKindFromInt, getName, getSource, getSourceProperty, hashCode, isValid, setSource
public CvSink(java.lang.String name)
name
- Source name (arbitrary unique identifier)public void setDescription(java.lang.String description)
description
- Descriptionpublic long grabFrame(Mat image)
public long grabFrame(Mat image, double timeout)
public long grabFrameNoTimeout(Mat image)
public java.lang.String getError()
public void setEnabled(boolean enabled)