Browse Source
update
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
1 changed files with
2 additions and
2 deletions
-
README.md
|
@ -54,7 +54,7 @@ av |
|
|
|
|
|
|
|
|
## How it works |
|
|
## How it works |
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
from towhee import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
p = ( |
|
|
p = ( |
|
|
pipe.input('video_file') |
|
|
pipe.input('video_file') |
|
@ -66,7 +66,7 @@ DataCollection(p('./video.mp4')).show(limit=1) |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import ops |
|
|
|
|
|
|
|
|
from towhee import ops |
|
|
|
|
|
|
|
|
d = ops.video_decode.ffmpeg(start_time=10.0, end_time=20.0, sample_type='uniform_temporal_subsample', args={'num_samples': 10}) |
|
|
d = ops.video_decode.ffmpeg(start_time=10.0, end_time=20.0, sample_type='uniform_temporal_subsample', args={'num_samples': 10}) |
|
|
for frame in d(video_path): |
|
|
for frame in d(video_path): |
|
|