def __init__(self, controller, stgs = {}): """ IDM's init function. Arguments: - self: The main object pointer. - controller: mousetrap main class pointer. This is passed by MouseTrap's controller (mousetrap.py) when loaded. - stgs: Possible settings loaded from the user's settings file. If there aren't settings the IDM will use the a_settings dict. """ debug.debug("ocvfw.idm", "Starting %s idm" % a_name) self.img = None self.ctr = controller self.cap = None self.stgs = stgs ############################## # MOTION RELATED VARIABLES # ############################## self.fel = eye_locator(FEL_NAME) ############################## # ACTION POINTS # ############################## self.mpPointer = None ############################## # CLICK RELATED VARIABLES # ############################## self.isMoving = False self.prepare_config() debug.info("ocvfw.idm", "Forhead Algorithm loaded")
def __init__(self, controller, stgs = {}): """ IDM's init function. Arguments: - self: The main object pointer. - controller: mousetrap main class pointer. This is passed by MouseTrap's controller (mousetrap.py) when loaded. - stgs: Possible settings loaded from the user's settings file. If there aren't settings the IDM will use the a_settings dict. """ # Debugging is always important debug.debug("ocvfw.idm", "Starting %s idm" % a_name) # Controller instance self.ctr = controller # Capture instance # The capture is the object containing the image # and all the possible methods to modify it. self.cap = None # IDM's Settings dict self.stgs = stgs # Prepares the IDM using the settings. self.prepare_config() debug.info("ocvfw.idm", "%s Algorithm loaded" % a_name)
def __init__(self, controller, stgs={}): """ IDM's init function. Arguments: - self: The main object pointer. - controller: mousetrap main class pointer. This is passed by MouseTrap's controller (mousetrap.py) when loaded. - stgs: Possible settings loaded from the user's settings file. If there aren't settings the IDM will use the a_settings dict. """ # Debugging is always important debug.debug("ocvfw.idm", "Starting %s idm" % a_name) # Controller instance self.ctr = controller # Capture instance # The capture is the object containing the image # and all the possible methods to modify it. self.cap = None # IDM's Settings dict self.stgs = stgs # Prepares the IDM using the settings. self.prepare_config() debug.info("ocvfw.idm", "%s Algorithm loaded" % a_name)