Shortcuts

caer.video

caer.video.extract_frames(input_folder, output_folder, target_size=None, include_subdirs=False, label_counter=None, max_video_count=None, frames_per_sec=None, frame_interval=None, dest_filetype='jpg')[source]

Function to extract frames from videos within a directory and save them as separate frames in an output directory. :param _sphinx_paramlinks_caer.video.extract_frames.input_folder: Input video directory. :param _sphinx_paramlinks_caer.video.extract_frames.output_folder: Output directory to save the frames. :param _sphinx_paramlinks_caer.video.extract_frames.target_size: Destination Image Size (tuple of size 2) :param _sphinx_paramlinks_caer.video.extract_frames.label_counter: Starting label counter :param _sphinx_paramlinks_caer.video.extract_frames.max_video_count: Number of videos to process. :param _sphinx_paramlinks_caer.video.extract_frames.frames_per_sec: Number of frames to process per second. :param _sphinx_paramlinks_caer.video.extract_frames.frame_interval: Interval between the frames to be processed. :param _sphinx_paramlinks_caer.video.extract_frames.dest_filetype: Processed image filetype (png, jpg) –> Default: png

Return type

int

Returns

label_counter (after processing)

Read the Docs v: stable
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.