개정판 d25d186d
issue #506: disable debug save iamge
Change-Id: Idee7415aae3a1ec61f0c0be42694b6337f46426a
DTI_PID/DTI_PID/OcrResultDialog.py | ||
---|---|---|
240 | 240 |
self.textInfoList = detector.textInfoList.copy() |
241 | 241 |
self.textInfoList.sort(key=lambda x: x.getY()) |
242 | 242 |
|
243 |
|
|
243 |
''' |
|
244 | 244 |
index = 0 |
245 | 245 |
for text_info in text_info_list: |
246 | 246 |
cropped = img[text_info.getY():text_info.getY() + text_info.getH(), text_info.getX():text_info.getX() + text_info.getW()] |
247 | 247 |
cv2.imwrite(f"c:\\temp\\ocr-{index}.png", cropped) |
248 | 248 |
index = index + 1 |
249 |
''' |
|
249 | 250 |
|
250 | 251 |
if self.textInfoList: |
251 | 252 |
self.ui.detectResultTextEdit.setText(self.getPlainText(self.textInfoList)) |
내보내기 Unified diff