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

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

Under Development

Definition at line 240 of file cam.py.

00240                           :
        """
        Under Development
        """
        points = self.cmGetMotionPoints( cv.cvRect( self.forehead.x - 100, 
                                                    self.forehead.y, 
                                                    100, 70) )

        curTime = time.time()
        
        for point in points:
            
            if self.blink:
                self.blink = False
                if curTime - self.lastBlink > 0.5 and curTime - self.lastBlink < 2.5:
                    print( point )
            else:
                self.blink = True
                self.lastBlink = time.time()

    def stop( self ):


Generated by  Doxygen 1.6.0   Back to index