개정판 fd6513cb
issue #000: fix opc detection
Change-Id: I3a2bedaf902b9ef53dbcb8a91c2951839b47e004
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
2224 | 2224 |
# disable opc detection |
2225 | 2225 |
if drawing_area is not None and (symbolType == "Piping OPC\'s" or symbolType == "Instrument OPC\'s"): |
2226 | 2226 |
customMatch = worker.detectOPCOnPid(drawing_area, symGray) |
2227 |
customMatch = [match for match in customMatch if match[0] > symbolThreshold] |
|
2227 | 2228 |
if customMatch and len(customMatch) > 0: |
2228 | 2229 |
for custom in customMatch: |
2229 | 2230 |
hitRate = custom[0] |
내보내기 Unified diff