Video
Module including routines for creating videos.
This module includes the following functions:
video_from_images(image_files, video_file, frame_rate)
- Creates a video from a set of images.video_from_images2(image1_files, image2_files, video_file, frame_rate, orientation)
- Creates a video from two sets of images, stitching the images together each frame.
video_from_images(image_files, video_file, frame_rate=15)
Creates a video from a set of images.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image_files |
List[str]
|
List of image files to be stitched into a video. |
required |
video_file |
str
|
Output video file to be created. |
required |
frame_rate |
int
|
Desired frame rate of the video. |
15
|
Source code in cvt/visualization/video.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
video_from_images2(image1_files, image2_files, video_file, frame_rate=15, orientation='horizontal')
Creates a video from two sets of images, stitching the images together each frame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image1_files |
List[str]
|
List of first image files to be stitched. |
required |
image2_files |
List[str]
|
List of second image files to be stitched. |
required |
video_file |
str
|
Output video file to be created. |
required |
frame_rate |
int
|
Desired frame rate of the video. |
15
|
orientation |
str
|
Desired stitch orientation (horizontal or verticle). |
'horizontal'
|
Source code in cvt/visualization/video.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|