개정판 97f1abb2
issue #506: merge line
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
746 | 746 |
if isAccept: |
747 | 747 |
if textInfoList is not None and len(textInfoList) > 0: |
748 | 748 |
docData = AppDocData.instance() |
749 |
configs = docData.getConfigs('Line No', 'Delimiter') |
|
750 |
delimiter = configs[0].value if 1 == len(configs) else '-' |
|
751 |
lineNoconfigs = docData.getConfigs('Line No', 'Configuration') |
|
752 | 749 |
for textInfo in textInfoList: |
753 | 750 |
x = textInfo.getX() |
754 | 751 |
y = textInfo.getY() |
DTI_PID/DTI_PID/OcrResultDialog.py | ||
---|---|---|
173 | 173 |
height = textInfo.getH() |
174 | 174 |
textInfo.setW(height) ## SWAP |
175 | 175 |
textInfo.setH(width) ## SWAP |
176 |
self.textInfoList = self.textInfoList[:len(splitText)] |
|
176 | 177 |
QDialog.accept(self) |
177 | 178 |
else: |
178 | 179 |
QMessageBox.about(self.ui.ocrDialogButtonBox, "알림", "텍스트 검출을 하신 후 다시 시도해주세요.") |
내보내기 Unified diff