We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc00c9a commit 6c22e46Copy full SHA for 6c22e46
1 file changed
src/main/java/io/github/doblon8/openpnp/capture/CaptureStream.java
@@ -54,6 +54,16 @@ public BufferedImage capture() {
54
return image;
55
}
56
57
+ /**
58
+ * Check if a new frame has been captured.
59
+ *
60
+ * @return true if a new frame has been captured, false otherwise.
61
+ */
62
+ public boolean hasNewFrame() {
63
+ int result = Cap_hasNewFrame(context.getSegment(), id);
64
+ return result == 1;
65
+ }
66
+
67
/**
68
* Check if a stream is open, i.e. is capturing data.
69
*
0 commit comments