teachpyx.tools.display.video_helper¶
- teachpyx.tools.display.video_helper.get_local_folder(file_or_folder, name='temp_video') str [source][source]¶
Creates or cleans a local folder create in the same folder as file_or_folder.
- teachpyx.tools.display.video_helper.make_video(images: List[str], outvid: str, fps: int = 5, size: Tuple[int, int] | None = None, is_color: bool = True, format: str = 'XVID') Any [source][source]¶
Creates a video from a list of images with opencv.
- Paramètres:
outvid – output video
images – list of images to use in the video
fps – frames per second
size – size of each frame
is_color – color
format – see fourcc
- Renvoie:
The function relies on opencv. By default, the video will have the size of the first image. It will resize every image to this size before adding them to the video.