Detector/ShotDetector.py
def show_detection(self, method, *arg):
        """
        Creat plot of shot detection and the threshold given 'method'
        """
        if method == MEAN_PIXEL_INTENSITY:
            print(f'method used: {MEAN_PIXEL_INTENSITY}\n')
            if len(arg) > 0:
                self._mean_p_int(window_size=arg[0], T=arg[1])
            else: self._mean_p_int()
        elif method == ECR:
            print(f'method used: {ECR}\n')
            if len(arg) > 0:
                self._edge_change_rate(load=arg[0])
            else: self._edge_change_rate()
        elif method == 'color_histogram_difference':
            print(f'method used: {HIST_DIFF}\n')
            if len(arg) > 0:
                self._hist_diff(load=arg[0])
            else: self._hist_diff()
        else:
        	raise Exception(f"Method <{method}> valid")

        Creat plot of shot detection and the threshold given 'method'
        
Creat plot of shot detection and the threshold given 'method'
Creat plot of shot detection and the threshold given ' method '
def show_detection(self, method, *arg):
        if method == MEAN_PIXEL_INTENSITY:
            print(f'method used: {MEAN_PIXEL_INTENSITY}\n')
            if len(arg) > 0:
                self._mean_p_int(window_size=arg[0], T=arg[1])
            else: self._mean_p_int()
        elif method == ECR:
            print(f'method used: {ECR}\n')
            if len(arg) > 0:
                self._edge_change_rate(load=arg[0])
            else: self._edge_change_rate()
        elif method == 'color_histogram_difference':
            print(f'method used: {HIST_DIFF}\n')
            if len(arg) > 0:
                self._hist_diff(load=arg[0])
            else: self._hist_diff()
        else:
        	raise Exception(f"Method <{method}> valid")
def show_detection ( self , method , * arg ) : if method == MEAN_PIXEL_INTENSITY : print ( f'method used: {MEAN_PIXEL_INTENSITY}\n' ) if len ( arg ) > 0 : self . _mean_p_int ( window_size = arg [ 0 ] , T = arg [ 1 ] ) else : self . _mean_p_int ( ) elif method == ECR : print ( f'method used: {ECR}\n' ) if len ( arg ) > 0 : self . _edge_change_rate ( load = arg [ 0 ] ) else : self . _edge_change_rate ( ) elif method == 'color_histogram_difference' : print ( f'method used: {HIST_DIFF}\n' ) if len ( arg ) > 0 : self . _hist_diff ( load = arg [ 0 ] ) else : self . _hist_diff ( ) else : raise Exception ( f"Method <{method}> valid" )
Creat plot of shot detection and the threshold given 'method'
Creat plot of shot detection and the threshold given ' method '
"""
        Creat plot of shot detection and the threshold given 'method'
        """
self
method