개정판 0756a00c
QRecognitionDialog 에 출력되는 검출 심볼 정보 간소화 (전체 경로 -> 심볼 이미지 파일명)
DTI_PID/DTI_PID/DTI_PID.py | ||
---|---|---|
346 | 346 |
listWidget.addItem(item) |
347 | 347 |
return |
348 | 348 |
else: |
349 |
listWidget.addItem('current symbol : ' + symbolPath)
|
|
349 |
listWidget.addItem('Current symbol : ' + os.path.basename(symbolPath.replace('.png', '')))
|
|
350 | 350 |
# up to here |
351 | 351 |
|
352 | 352 |
sym = cv2.imread(symbolPath, 1) |
... | ... | |
504 | 504 |
|
505 | 505 |
|
506 | 506 |
threadLock.acquire() |
507 |
srcName = os.path.splitext(os.path.basename(mainRes))[0] |
|
508 |
listWidget.addItem('finish symbol(count) / AvgMpCount : ' + symbolPath + '(' + str(foundSymbolCount) + ') / avgMpCount : ' + str(avgMpCount))
|
|
507 |
srcName = os.path.splitext(os.path.basename(mainRes))[0]
|
|
508 |
listWidget.addItem('Finish symbol : ' + os.path.basename(symbolPath.replace('.png', '')) + ' - (' + str(foundSymbolCount) + ')')
|
|
509 | 509 |
f = open(os.path.dirname(os.path.realpath(__file__)) + "\\res\\Result\\result_"+srcName+"_600dpi.txt", 'a+') |
510 | 510 |
data = 'symbolName - (count) : ' + symbolPath + ' - (' + str(foundSymbolCount) + ') / avgMpCount : '+str(avgMpCount)+'\n' |
511 | 511 |
f.write(data) |
내보내기 Unified diff