Esempio n. 1
0
    def __init__(self, img_file, conf_file=None, verbose='vv'):
        Preprocess.__init__(self,
                            img_file,
                            conf_file=conf_file,
                            verbose=verbose)

        ocr_dict.clear()
        cellName_xy_dict.clear()
        dict_texts.clear()

        self.ocr_files = []

        if not os.path.exists(ocr_dir):
            os.mkdir(ocr_dir)
        else:
            utils.del_files(ocr_dir)
Esempio n. 2
0
 def __init__(self, window=5, unk='<UNK_W>', save_dir='./preprocess/'):
     Preprocess.__init__(self, window, unk, save_dir)