Ejemplo n.º 1
0
 def __init__(self, prefix, dryRun):
     h, w = 300, 300
     img = np.zeros((h, w, 3), np.uint8)
     img[:,:] = (255, 255, 255)
     self.brush = Brush("Brush")
     self.sketcher = Sketcher("Dataset Creator", img, self.brush)
     self.__folders = OCR.generateFolderList(OCR.DIGITS | OCR.LETTERS | OCR.SYMBOLS)
     self.__prefix = prefix
     self.__lastFile = None
     self.__dryRun = dryRun