components.dataset_video
Module Contents
Classes
An object of this class represents the video dataset. |
- class components.dataset_video.Dataset_Video(name)
Bases:
Storage
An object of this class represents the video dataset.
- Parameters
name (str) – the name of the dataset
Examples
dataset1 = Dataset_Video(‘video_dataset_1’)
ataset1.data = r”C:/UsersAdministrator/Videos/Captures/test_meeting _recording.mp4”
dataset1.data = “C:/Users/Administrator/Videos/Captures/test_meeting _recording.mp4”
dataset1.attrs[‘timestamp’] = ‘2022-06-13 11:22:11’
dataset1.set_storage_path(‘test/test_ut_video.h5’)
dataset1.store()
- property data(self)
- output_file(self, path_output)
this function is designed to convert the binary format data into the original format
- Parameters
path_output (str) – the path of output
- convert_pics(self, path_output)
this function is to convert the video file into frame segmentations
- Parameters
path_output (str) – the path of output