def _WriteText(self, disp, img, txt,color):
        if(disp is not None):
            txt = ' ' + txt + ' '
            img = img.adaptiveScale(disp.resolution)
            layer = DrawingLayer((img.width,img.height))
            layer.setFontSize(60)
            layer.ezViewText(txt,(20,20),fgcolor=color)
            img.addDrawingLayer(layer)
            img.applyLayers()
            img.save(disp)
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/MachineLearning/NaiveBayesClassifier.py/NaiveBayesClassifier._WriteText/original