(*args, **kwargs)
| 113 | |
| 114 | @contextmanager |
| 115 | def VideoReader_contextmanager(*args, **kwargs): |
| 116 | vr = VideoReader(*args, **kwargs) |
| 117 | try: |
| 118 | yield vr |
| 119 | finally: |
| 120 | del vr |
| 121 | gc.collect() |
| 122 | |
| 123 | def get_video_reader_batch(video_reader, batch_index): |
| 124 | frames = video_reader.get_batch(batch_index).asnumpy() |
nothing calls this directly
no outgoing calls
no test coverage detected