#NEWLINE# def showPixelVelocityRT( self , pos = None , color = Color . GREEN , size = None ) : #NEWLINE# #INDENT# '\n        **SUMMARY**\n\n        show the Pixel Veloctiy (pixels/second) of the object in text on the current frame.\n\n        **PARAMETERS**\n        * *pos* - A tuple consisting of x, y values. where to put to the text\n        * *color* - The color to draw the object. Either an BGR tuple or a member of the :py:class:`Color` class.\n        * *size* - Fontsize of the text\n\n        **RETURNS**\n\n        Nada. Nothing. Zilch.\n\n        **EXAMPLE**\n\n        >>> while True:\n            ... img1 = cam.getImage()\n            ... ts = img1.track("camshift", ts1, img, bb)\n            ... ts.showPixelVelocityRT() # For continuous bounding box\n            ... img = img1\n        ' #NEWLINE# ts = self #NEWLINE# f = ts [ ( - 1 ) ] #NEWLINE# img = self . image #NEWLINE# vel_rt = f . rt_vel #NEWLINE# if ( not pos ) : #NEWLINE# #INDENT# imgsize = img . size ( ) #NEWLINE# pos = ( ( imgsize [ 0 ] - 120 ) , 90 ) #NEWLINE# #UNINDENT# if ( not size ) : #NEWLINE# #INDENT# size = 16 #NEWLINE# #UNINDENT# text = ( 'Vx = %.2f Vy = %.2f' % ( vel_rt [ 0 ] , vel_rt [ 1 ] ) ) #NEWLINE# img . drawText ( text , pos [ 0 ] , pos [ 1 ] , color , size ) #NEWLINE# img . drawText ( 'in pixels/second' , pos [ 0 ] , ( pos [ 1 ] + size ) , color , size )