개정판 bb7c35db
불분명한 코드 삭제
DTI_PID/DTI_PID/DTI_PID.py | ||
---|---|---|
554 | 554 |
@history 2018.04.27 Jeongwoo Remove Tesseract Log on listWidget |
555 | 555 |
2018.05.04 Jeongwoo Change method to OCR with tesseract_ocr_module.py |
556 | 556 |
2018.05.09 Jeongwoo Add global variable textInfoList, Remove text in symbol and Add tesseract result text |
557 |
2018.05.10 Jeongwoo Remove not used if-statement |
|
557 | 558 |
''' |
558 | 559 |
def drawFoundSymbols(symbol, listWidget): |
559 | 560 |
global src |
... | ... | |
576 | 577 | |
577 | 578 |
chan, w, h = symImg.shape[::-1] |
578 | 579 |
canvas[symbolSp[1]:symbolSp[1]+h, symbolSp[0]:symbolSp[0]+w] = cv2.bitwise_and(canvas[symbolSp[1]:symbolSp[1]+h, symbolSp[0]:symbolSp[0]+w], symImg) |
579 | ||
580 |
if (symbolId // 100) == 99: ## Drum |
|
581 |
return |
|
582 | 580 |
|
583 | 581 |
if symbolOcrOption == SymbolBase.OCR_OPTION_ALL_FIND or symbolOcrOption == SymbolBase.OCR_OPTION_HALF_AND_HALF: |
584 | 582 |
if symbolOcrOption == SymbolBase.OCR_OPTION_HALF_AND_HALF: |
내보내기 Unified diff