powered by
Extract frames from video for classification
extract_frames( files, frames = 5, fps = NULL, out_file = NULL, out_dir = NULL, file_col = "filepath", parallel = TRUE, num_workers = 4 )
dataframe of still frames for each video
dataframe of videos
number of frames to sample
frames per second, otherwise determine mathematically
csv file to which results will be saved
directory to save frames to if not null
string value indexing which column contains file paths
Toggle for parallel processing, defaults to FALSE
number of processors to use if parallel, defaults to 4
if (FALSE) { frames <- extract_frames(manifest, out_dir = "C:\\Users\\usr\\Videos\\", frames = 5) }
Run the code above in your browser using DataLab