def sendKeyword(self): inputwords = self.leKeyword.text() self.pbOCR.setValue(self.__i) # to ocrProgress self.stackedWidget.setCurrentIndex(6) QApplication.processEvents() self.__Ocr = OCR.CoverCheck(self.__DC.IMG_path, self.__DC.Crop_path, self.__DC.Improvement_path, inputwords) self.__Ocr.setOnstepListener(self) crop_list = self.__Ocr.crop(self.__coverList) improvement_list = self.__Ocr.improve(crop_list) detail_list = self.__Ocr.comparison(improvement_list) self.__DC.CROP_clear() self.__DC.IMPROVEMENT_clear() self.detailResult(detail_list) self.stackedWidget.setCurrentIndex(7)