courtvision.console
grab_frames_from_clips(frame_interval=6, max_num_frames=800, output_dir=Path('/Users/benjamindecharmoy/projects/courtvision/balldataset'))
Grabs frames from the clips in the dataset and saves every frame_interval
th
frame to output_dir
for a maximum of max_num_frames
frames.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
frame_interval |
int
|
Save every |
6
|
max_num_frames |
int
|
Max number of frames to save. Defaults to 800. |
800
|
output_dir |
Path
|
Frames are saved to this directory. Defaults to Path( "/Users/benjamindecharmoy/projects/courtvision/balldataset" ). |
Path('/Users/benjamindecharmoy/projects/courtvision/balldataset')
|
Source code in courtvision/console.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|