def __init__(self, source=None): Op.__init__(self, source) path = os.path.join(os.path.dirname(__file__), 'data', 'lbpcascade_frontalface_improved.xml') self.classifier = cv2.CascadeClassifier(path) self.trackers = [] self.t0 = 0.0
def __init__( self, pool, func, timeout=None, chunksize=1, ordered=True, source=None): self._pool = pool self._func = func self._kwargs = dict( timeout=timeout, chunksize=chunksize, ordered=ordered, star=True) Op.__init__(self, source)
def __init__(self, count, source=None): Op.__init__(self, source) self._count = count self.bars: BarList = BarList()
def __init__(self, timer, source=None): Op.__init__(self, source) self._timer = timer self._timer.connect(self._on_timer, None, self._on_timer_done) self.bars: BarList = BarList()
def __init__(self, tickTypes, source=None): Op.__init__(self, source) self._tickTypes = set(tickTypes)
def __init__(self, source=None): Op.__init__(self, source) self.persons = []