Example #1
0
    def drawTest( self, img ):
        #BRG
        if self.color: 
            utils.drawPoint(img, self.getCenterPoint(), BLUE)
            utils.drawPoint(img, 200, 300, RED)

        else:
            utils.drawPoint(img, self.getWormPoint(), BLACK)
            utils.drawPoint(img, 200, 300, BLACK)
Example #2
0
    def drawDebugCropped( self, img ):
        if self.color: 
            utils.drawPoint(img, self.getWormPoint(), RED)
            #utils.drawPoint(img, self.getCenterPoint(), BLUE)
            #utils.drawPoint(img, self.getThisPoint(), BLUE)
            #utils.drawPoint(img, self.getMeanWormPoint(), GREEN)
            utils.drawRect(img, self.getCropRect(), BLACK)
            utils.drawRect(img, self.getDecisionRect(), RED)

        else: 
            utils.drawPoint(img, self.getWormPoint(), WHITE)
            #utils.drawPoint(img, self.getCenterPoint(), BLUE)
            #utils.drawPoint(img, self.getThisPoint(), WHITE)
            utils.drawRect(img, self.getDecisionRect(), BLACK)

        if self.launch >= self.launchMAX:
            utils.drawRect(img, self.getCropRect(), BLACK)
Example #3
0
 def drawDebuggingPoint( self, img ):
     utils.drawPoint(img, self.getWormPoint(), RED)
     utils.drawPoint(img, self.getRefPoint(), BLUE)
     utils.drawPoint(img, self.getMeanWormPoint() , GREEN)