VidCropper¶
-
class
runners.VidCropper.
CropVid
(vid, directory, crop_txt_files, nose_txt_files)¶ Main cropper class
-
exception
runners.VidCropper.
DurationException
(string)¶
-
runners.VidCropper.
crop_and_resize
(vid, width, height, x_min, y_min, directory, resize_factor)¶ Crops a video and then resizes it
Parameters: - vid – Video to crop
- width (Union[int, float]) – Width of crop
- height (Union[int, float]) – Height of crop
- x_min (Union[int, float]) – x-coordinate of top-left corner
- y_min (Union[int, float]) – y-coordinate of top-left corner
- directory – Directory to output files to
- resize_factor – Factor by which to resize the cropped video
-
runners.VidCropper.
duration
(vid_file_path)¶ Video’s duration in seconds, return a float number
-
runners.VidCropper.
probe
(vid_file_path)¶ Give a json from ffprobe command line
:param vid_file_path : The absolute (full) path of the video file :type vid_file_path : str