示例#1
0
 def __init__(self, options, processorPool):
   DependentFrameProcessor.__init__(self, options, processorPool)
   self.colorFilterProcessor = processorPool.getProcessorByType(ColorFilterProcessor)
   if self.colorFilterProcessor is None:
     self.loge("__init__", "Could not find a ColorFilterProcessor; will use internal white filter")
   #self.debug = True  # override debug flag
   self.state = LineDetector.State.INIT
示例#2
0
 def __init__(self, options, processorPool):
   DependentFrameProcessor.__init__(self, options, processorPool)
   self.colorFilterProcessor = processorPool.getProcessorByType(ColorFilterProcessor)  # keep a reference to a ColorFilterProcessor, if given
   #self.debug = True  # overriding debug flag
   self.state = self.State.INIT
示例#3
0
 def __init__(self, options, processorPool):
   DependentFrameProcessor.__init__(self, options, processorPool)
   self.detector = processorPool.getProcessorByType(LineDetector)
   if self.detector is None:
     self.loge("__init__", "Could not find a LineDetector; will not activate :(")
   self.state = LineWalker.State.INIT