Exemplo n.º 1
0
 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
Exemplo n.º 2
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)
Exemplo n.º 3
0
 def __init__(self, count, source=None):
     Op.__init__(self, source)
     self._count = count
     self.bars: BarList = BarList()
Exemplo n.º 4
0
 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()
Exemplo n.º 5
0
 def __init__(self, tickTypes, source=None):
     Op.__init__(self, source)
     self._tickTypes = set(tickTypes)
Exemplo n.º 6
0
 def __init__(self, source=None):
     Op.__init__(self, source)
     self.persons = []