cap_set_frame
[#15]get_cap_selected_frame
[#22]get_video_params
[#35]open_cvwriter
[#56]save_videocap_to_video
[#81]
Check the source code
online
def cap_set_frame(cap, frame_number):
docstring:
Sets an opencv video capture object to a specific frame
Check the source code
online
def get_cap_selected_frame(cap, show_frame):
docstring:
Gets a frame from an opencv video capture object to a specific frame
Check the source code
online
def get_video_params(cap):
docstring:
Gets video parameters from an opencv video capture object
Check the source code
online
def open_cvwriter(filepath, w=None, h=None, framerate=None,
format='.mp4', iscolor=False):
docstring:
Creats an instance of cv.VideoWriter to write frames to video using
python opencv
:param filepath: str, path to file to save
:param w,h: width and height of frame in pixels
:param framerate: fps of output video
:param format: video format
:param iscolor: bool, set as true if images are rgb, else false if
they are gray
Check the source code
online
def save_videocap_to_video(cap, savepath, fmt, fps=30, iscolor=True):
docstring:
Saves the content of a videocapture opencv object to a file