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

def mouseTrap::ocvfw::ocvfw::cmAddMessage (   self,
  message,
  font = cv.CV_FONT_HERSHEY_COMPLEX,
  poss = None 
)

Write a message into the image.

Arguments:
- self: The main object pointer.
- message: A string with the message.
- font: An OpenCV font to use.
- poss: The position of the message in the image. NOTE: Not enabled yet.

Definition at line 65 of file ocvfw.py.

00065                                                                                     :
        """
        Write a message into the image.
        
        Arguments:
        - self: The main object pointer.
        - message: A string with the message.
        - font: An OpenCV font to use.
        - poss: The position of the message in the image. NOTE: Not enabled yet.
        """
        
        font = cv.cvInitFont ( font, 1, 1, 0.0, 1, cv.CV_AA)
        textSize, ymin = cv.cvGetTextSize (message, font)
        pt1 = cv.cvPoint ( ( self.img.width - textSize.width ) / 2 , 20 )
        cv.cvPutText (self.img, message, pt1, font, cv.cvScalar (255, 0, 0))
        
    def cmGetHaarPoints( self, haarCascade, method = cv.CV_HAAR_DO_CANNY_PRUNING ):


Generated by  Doxygen 1.6.0   Back to index