개정판 1de0fe54
issue #663: disable temp image save
Change-Id: I052afa3b62d6515c13ce5db6132fb4cee99d8ebc
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
471 | 471 |
line.drawToImage(imgDiff, 255, thickness) if line.thickness is None else \ |
472 | 472 |
line.drawToImage(imgDiff, 255, line.thickness) |
473 | 473 |
# up to here |
474 |
cv2.imwrite(diffFilePath, imgDiff)
|
|
474 |
# cv2.imwrite(diffFilePath, imgDiff) for debug
|
|
475 | 475 |
|
476 | 476 |
imgNot = np.ones(imgDiff.shape, np.uint8) |
477 | 477 |
cv2.bitwise_not(imgDiff, imgNot) |
... | ... | |
1169 | 1169 |
textInfoList.clear() |
1170 | 1170 |
# up to here |
1171 | 1171 |
|
1172 |
removedSymbolImgPath = os.path.join(project.getTempPath(), os.path.basename(mainRes)) |
|
1173 |
cv2.imwrite(removedSymbolImgPath, app_doc_data.imgSrc)
|
|
1172 |
#removedSymbolImgPath = os.path.join(project.getTempPath(), os.path.basename(mainRes))
|
|
1173 |
#cv2.imwrite(removedSymbolImgPath, app_doc_data.imgSrc) for debug
|
|
1174 | 1174 |
|
1175 | 1175 |
listWidget.addItem("Recognized symbol count : " + str(len(searchedSymbolList))) |
1176 | 1176 |
|
... | ... | |
1221 | 1221 |
if area is not None: |
1222 | 1222 |
area.img = app_doc_data.imgSrc[round(area.y + 1):round(area.y + area.height), |
1223 | 1223 |
round(area.x + 1):round(area.x + area.width)] |
1224 |
cv2.imwrite(os.path.join(project.getTempPath(), "RECT_" + os.path.basename(mainRes)), |
|
1225 |
app_doc_data.imgSrc)
|
|
1224 |
#cv2.imwrite(os.path.join(project.getTempPath(), "RECT_" + os.path.basename(mainRes)),
|
|
1225 |
# app_doc_data.imgSrc) for debug
|
|
1226 | 1226 |
|
1227 | 1227 |
Worker.drawFoundSymbolsOnCanvas(mainRes, searchedSymbolList, textInfoList, listWidget) |
1228 | 1228 |
|
... | ... | |
3549 | 3549 |
|
3550 | 3550 |
canvas[top:bottom, left:right] = app_doc_data.imgSrc[top:bottom, left:right] |
3551 | 3551 |
|
3552 |
cv2.imwrite(os.path.join(project.getTempPath(), "FOUND_" + os.path.basename(drawingPath)), canvas)
|
|
3552 |
#cv2.imwrite(os.path.join(project.getTempPath(), "FOUND_" + os.path.basename(drawingPath)), canvas) for debug
|
|
3553 | 3553 |
except Exception as ex: |
3554 | 3554 |
from App import App |
3555 | 3555 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
내보내기 Unified diff