Пример #1
0
 def __init__(self,
              sigma=(3, 3),
              probabilityThreshold=0.4,
              compressionWidth=200):
     AbstractPostProcessor.__init__(self, Frame, Frame, compressionWidth)
     self.smoother = ProbabilitySmoother(compressionWidth, sigma)
     self.thresholder = ProbabilityThresholder(compressionWidth,
                                               probabilityThreshold)
     self.output = None
     self.others = {}
Пример #2
0
 def __init__(self,
              sigma=(3, 3),
              probabilityThreshold=0.4,
              marginPercentage=0.05,
              compressionWidth=200,
              minimumAreaPercentage=0.01,
              maxContours=3):
     AbstractPostProcessor.__init__(self, Frame, Frame, compressionWidth)
     self.smoother = ProbabilitySmoother(compressionWidth, sigma)
     self.thresholder = ProbabilityThresholder(compressionWidth,
                                               probabilityThreshold)
     self.borderFilter = BorderFilter(compressionWidth, marginPercentage)
     self.areaFilter = AreaFilter(compressionWidth, minimumAreaPercentage)
     self.numberFilter = NumberFilter(compressionWidth, maxContours)
     self.output = None
     self.others = {}
Пример #3
0
 def __init__(self, compressionWidth=200, maxNumber=3):
     AbstractPostProcessor.__init__(self, np.ndarray, np.ndarray,
                                    compressionWidth)
     self.maxNumber = maxNumber
     self.output = None
     self.others = {}
Пример #4
0
 def __init__(self, compressionWidth = 200, marginPercentage = 0.05):
     AbstractPostProcessor.__init__(self, np.ndarray, np.ndarray, compressionWidth)
     self.marginPercentage = marginPercentage
Пример #5
0
 def __init__(self, compressionWidth=200, sigma=(5, 5)):
     AbstractPostProcessor.__init__(self, Frame, Frame, compressionWidth)
     self.sigma = sigma
Пример #6
0
 def __init__(self, compressionWidth=200, minAreaPercentage=0.01):
     AbstractPostProcessor.__init__(self, np.ndarray, np.ndarray,
                                    compressionWidth)
     self.minAreaPercentage = minAreaPercentage
     self.output = None
     self.others = {}
Пример #7
0
 def __init__(self, compressionWidth=200, threshold=0.4):
     AbstractPostProcessor.__init__(self, Frame, np.ndarray,
                                    compressionWidth)
     self.threshold = threshold