gnes.preprocessor.helper module

gnes.preprocessor.helper.block_descriptor(image, descriptor_fn, num_blocks=3)[source]
Return type:ndarray
gnes.preprocessor.helper.canny_edge(image, **kwargs)[source]
Return type:ndarray
gnes.preprocessor.helper.check_motion(prev_dists, cur_dist, motion_threshold=0.75)[source]

Returns a boolean value to decide if the peak is due to a motion

gnes.preprocessor.helper.compare_descriptor(descriptor1, descriptor2, metric='chisqr')[source]
Return type:float
gnes.preprocessor.helper.compare_ecr(descriptors, **kwargs)[source]
Return type:List[float]
gnes.preprocessor.helper.compute_descriptor(image, method='rgb_histogram', **kwargs)[source]
Return type:<built-in function array>
gnes.preprocessor.helper.detect_peak_boundary(distances, method='kmeans', **kwargs)[source]
Return type:List[int]
gnes.preprocessor.helper.get_all_subarea(img)[source]
gnes.preprocessor.helper.get_audio(buffer_data, sample_rate, interval, duration)[source]
Return type:List[ndarray]
gnes.preprocessor.helper.get_gif(images, fps=10)[source]
gnes.preprocessor.helper.get_video_length(video_path)[source]
gnes.preprocessor.helper.get_video_length_from_raw(buffer_data)[source]
gnes.preprocessor.helper.hsv_histogram(image)[source]
Return type:ndarray
gnes.preprocessor.helper.kmeans_algo(distances, **kwargs)[source]
Return type:List[int]
gnes.preprocessor.helper.motion_algo(distances, **kwargs)[source]
Return type:List[int]
gnes.preprocessor.helper.phash_descriptor(image)[source]
gnes.preprocessor.helper.pyramid_descriptor(image, descriptor_fn, max_level=2)[source]
Return type:ndarray
gnes.preprocessor.helper.rgb_histogram(image)[source]
Return type:ndarray
gnes.preprocessor.helper.split_mp4_random(video_path, avg_length, max_clip_second=10)[source]
gnes.preprocessor.helper.split_video_frames(buffer_data, splitter='__split__')[source]
gnes.preprocessor.helper.thre_algo(distances, **kwargs)[source]
Return type:List[int]
gnes.preprocessor.helper.torch_transform(img)[source]