gnes.preprocessor.video.shot_detector module

class gnes.preprocessor.video.shot_detector.ShotDetectorPreprocessor(descriptor='block_hsv_histogram', distance_metric='bhattacharya', detect_method='threshold', frame_size=None, frame_rate=10, vframes=-1, sframes=-1, drop_raw_data=False, *args, **kwargs)[source]

Bases: gnes.preprocessor.base.BaseVideoPreprocessor

apply(doc)[source]
Return type:None
detect_shots(frames)[source]
Return type:List[List[ndarray]]
store_args_kwargs = True
train(*args, **kwargs)

Train the model, need to be overrided