gnes.preprocessor.helper module¶
-
gnes.preprocessor.helper.block_descriptor(image, descriptor_fn, num_blocks=3)[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.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_audio(buffer_data, sample_rate, interval, duration)[source]¶ Return type: List[ndarray]