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

def mouseTrap::cam::Camera::_procCapture (   self  )  [private]

Process the points information ( [X, Y] positions ) and perform the movements/clicks calls.

Arguments:
- self: The main object pointer.

Definition at line 214 of file cam.py.

00214                             :
        """
        Process the points information ( [X, Y] positions ) and perform the movements/clicks calls.
        
        Arguments:
        - self: The main object pointer.
        """
        
        self.foreheadDiff = cv.cvPoint( self.foreheadLast.x - self.forehead.x, 
                                        self.foreheadLast.y - self.forehead.y )
                                        
        # This helps to forbid None points to pass through
        if self.forehead is None or self.foreheadOrig is None:
            return self.cmCleanLKPoints()
        
        self.mpPointer = cv.cvPoint( 100 - (self.forehead.x - self.foreheadOrig.x),
                                        80 + (self.forehead.y - self.foreheadOrig.y))

        #if abs(self.foreheadLast.x - self.forehead.x) >= 15 or \
         #       abs(self.foreheadLast.y - self.forehead.y) >= 15:
            
          #  self.forehead = self.foreheadLast
           # self.imgLKPoints["current"] = self.imgLKPoints["last"]
        
        self.foreheadLast = self.forehead
        
    def checkBlink( self ):


Generated by  Doxygen 1.6.0   Back to index