def _initialize_trackbars(self):
        """
        Initialize trackbars by discovering ``block_matcher``'s parameters.
        """
        for parameter in self.block_matcher.parameter_maxima.keys():
            maximum = self.block_matcher.parameter_maxima[parameter]
            if not maximum:
                maximum = self.shortest_dimension
            cv2.createTrackbar(parameter, self.window_name,
                               self.block_matcher.__getattribute__(parameter),
                               maximum,
                               partial(self._set_value, parameter))
def _initialize_trackbars ( self ) : for parameter in self . block_matcher . parameter_maxima . keys ( ) : maximum = self . block_matcher . parameter_maxima [ parameter ] if not maximum : maximum = self . shortest_dimension cv2 . createTrackbar ( parameter , self . window_name , self . block_matcher . __getattribute__ ( parameter ) , maximum , partial ( self . _set_value , parameter ) )
Initialize trackbars by discovering ``block_matcher``'s parameters.