Skip to content

Commit 3d9a2cf

Browse files
committed
update readme
1 parent cacf371 commit 3d9a2cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ for i in range(len(vr)):
155155
# the video reader will handle seeking and skipping in the most efficient manner
156156
frame = vr[i]
157157

158+
# To get multiple frames at once, use get_batch
159+
frames = vf.get_batch([1, 3, 5, 7, 9])
160+
print(frames.shape)
161+
# (5, 240, 320, 3)
162+
158163
```
159164

160165
### VideoLoader

0 commit comments

Comments
 (0)