ready for tests
This commit is contained in:
1 parent
dec96aec4d
commit
bb18de8dce
1 file changed
+8
@@ -123,6 +123,14 @@ def get_video_frames_generator(
|
||||
end (int): Indicates the ending position at which video should stop generating frames
|
||||
Returns:
|
||||
(Generator[np.ndarray, None, None]): A generator that yields the frames of the video.
|
||||
|
||||
Examples:
|
||||
```python
|
||||
>>> import supervision as sv
|
||||
|
||||
>>> for frame in sv.get_video_frames_generator(source_path='source_video.mp4'):
|
||||
... ...
|
||||
```
|
||||
"""
|
||||
video, start, end = _validate_and_setup_video(source_path, start, end)
|
||||
frame_position = start
|
||||
|
||||
Reference in new issue
Block a user