video

Contents

cap_set_frame [#15]

Check the source code online
1
def cap_set_frame(cap, frame_number):
Copied!
  docstring:
1
Sets an opencv video capture object to a specific frame
Copied!

get_cap_selected_frame [#22]

Check the source code online
1
def get_cap_selected_frame(cap, show_frame):
Copied!
  docstring:
1
Gets a frame from an opencv video capture object to a specific frame
Copied!

get_video_params [#35]

Check the source code online
1
def get_video_params(cap):
Copied!
  docstring:
1
Gets video parameters from an opencv video capture object
Copied!

open_cvwriter [#56]

Check the source code online
1
def open_cvwriter(filepath, w=None, h=None, framerate=None,
2
format='.mp4', iscolor=False):
Copied!
  docstring:
1
Creats an instance of cv.VideoWriter to write frames to video using
2
python opencv
3
4
:param filepath: str, path to file to save
5
6
:param w,h: width and height of frame in pixels
7
8
:param framerate: fps of output video
9
10
:param format: video format
11
12
:param iscolor: bool, set as true if images are rgb, else false if
13
they are gray
Copied!

save_videocap_to_video [#81]

Check the source code online
1
def save_videocap_to_video(cap, savepath, fmt, fps=30, iscolor=True):
Copied!
  docstring:
1
Saves the content of a videocapture opencv object to a file
Copied!
Last modified 1yr ago