def annotateFrame(self, key_frame, rect_color='yellow', 
                      contour_color='#00FF00', flow_color='white'):
        #key_frame = md.getKeyFrame()
        
        if key_frame != None:
            
            if contour_color != None:
                for poly in self.getPolygons():
                    key_frame.annotatePolygon(poly,color=contour_color,width=1)
                    
            if rect_color != None:   
                for rect in self.getRects():
                    key_frame.annotatePolygon(rect.asPolygon(),width=2,color=rect_color)
                
            if (flow_color != None) and (self._method == pv.BG_SUBTRACT_MCFD):
                flow = self._bgSubtract.getOpticalFlow()
                flow.annotateFrame(key_frame, type="TRACKING", color=flow_color)
                
            #for rect in rects:
            #    key_frame.annotatePolygon(rect.asPolygon(),width=2)
            #    key_frame.annotatePoint(rect.center())                
        
            #ilog(key_frame)
The object we are a delegate of.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/MotionDetector.py/MotionDetector.annotateFrame--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/hasresponses.py/HasResponses.parent