Logo Search packages:      
Sourcecode: gnome-mousetrap version File versions  Download package

def mouseTrap::cam::Camera::__init__ (   self  ) 

The Camera Class Constructor.

Initialize the cmCameraMod class and sets the needed attributes.

Arguments:
- self: The main object pointer.
- mouseTrap: The mouseTrap object pointer.

Reimplemented from mouseTrap::ocvfw::ocvfw.

Definition at line 64 of file cam.py.

00064                         :
        """
        The Camera Class Constructor.
        
        Initialize the cmCameraMod class and sets the needed attributes.
        
        Arguments:
        - self: The main object pointer.
        - mouseTrap: The mouseTrap object pointer.
        """
        
        ocvfw.ocvfw.__init__(self)

        self.run          = True
        self.mTp          = mouseTrap
        self.settings     = mouseTrap.settings
        
        ##############################
        #  MOTION RELATED VARIABLES  #
        ##############################        
        
        self.step         = self.settings.getint( "mouse", "stepSpeed" )
        self.forehead     = None
        self.foreheadLast = None
        self.foreheadOrig = None
        self.foreheadDiff = None
        self.stopMove     = None
        self.startMove    = None
        self.haarCds      = { 'Face'  :  env.haarcascades + "/haarcascade_frontalface_alt.xml",
                              'Eyes'  :  env.haarcascades + "/frontalEyes35x16.xml",
                              'Mouth' :  env.haarcascades + "/Mouth.xml"}
        

        ##############################
        #       ACTION POINTS        #
        ##############################
        self.mpPointer       = None
                                      
        ##############################
        #  CLICK RELATED VARIABLES   #
        ##############################
        
        self.isMoving       = False
        
        ##############################
        #   BLINK RELATED VARIABLES  #
        ##############################
        
        self.blink = False
        self.lastBlink = time.time()
        
        
    def start( self ):


Generated by  Doxygen 1.6.0   Back to index