You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,14 @@ Alternatively, you can install suitable wheel from [releases page](https://githu
22
22
from zbl import Capture
23
23
24
24
with Capture(window_name='visual studio code') as cap:
25
-
frame =next(cap.frames())
26
-
print(frame.shape)
25
+
# grab a single frame (numpy.ndarray) and print its shape
26
+
print(cap.grab().shape)
27
27
```
28
28
29
-
The snippet above will capture a window which title contains the string `visual studio code`, take one frame (which is represented as a `numpy` array) and print its shape.
29
+
The snippet above will capture a window which title contains the string `visual studio code`,
30
+
grab one frame and print its shape.
30
31
31
-
See `Capture` constructor for more options. It is possible to capture the entire screen using `display_id` argument,
32
-
for example.
32
+
See [Capture](https://github.com/modelflat/zbl/blob/master/zbl_py/zbl/__init__.py) for other API methods.
0 commit comments