개정판 c7500b90
issue #663: fix equipment detection
Change-Id: I7198d6a84f91b4e3a895d59c2eae001f61527fdb
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
1612 | 1612 |
hasInstrumentLabel=hasInstrumentLabel, text_area=text_area) |
1613 | 1613 |
threadLock.release() |
1614 | 1614 |
# 현재 심볼과 검출된 심볼이 같지 않을 경우 (포함) |
1615 |
elif app_doc_data.isEquipmentType(searchedSymbol.getType()): |
|
1615 |
elif app_doc_data.isEquipmentType(searchedSymbol.getType()) and \ |
|
1616 |
not app_doc_data.isEquipmentType(searchedSymbolList[symbolIndex].getType()): |
|
1616 | 1617 |
if searchedSymbol.area > sw * sh * 10: # searched equipment area is greather than 10 times of symbol's area |
1617 | 1618 |
threadLock.acquire() |
1618 | 1619 |
foundSymbolCount = foundSymbolCount + 1 |
내보내기 Unified diff