Learn R Programming

animl (version 3.2.0)

get_frame_as_image: Given a video path, return a specific frame as an RGB image

Description

Given a video path, return a specific frame as an RGB image

Usage

get_frame_as_image(video_path, frame = 0)

Value

rgb_frame: extracted frame as RGB image

Arguments

video_path

path to video file

frame

frame number to extract (default is 0)

Examples

Run this code
if (FALSE) get_frame_as_image('/example/path/to/video.mp4', frame=213)

Run the code above in your browser using DataLab