개정판 73360ef4
dev issue #366 : 주석 처리
Change-Id: I42b5e6e681ef19cb56d8a5cded2b4133564cf14f
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
962 | 962 |
connectionPoint = Worker.getCalculatedConnectionPoint(symbolConnectionPoint, symbolRotatedAngle, sw, |
963 | 963 |
sh, sow, soh, flipped) |
964 | 964 |
|
965 |
# For OPC |
|
965 |
# # For OPC
|
|
966 | 966 |
# drawing_area = app_doc_data.getArea('Drawing') |
967 | 967 |
# if drawing_area is not None and (symbolType == "Piping OPC\'s" or symbolType == "Instrument OPC\'s"): |
968 | 968 |
# customMatch = worker.detectOPCOnPid(drawing_area, symGray) |
... | ... | |
992 | 992 |
# isContainChild, |
993 | 993 |
# originalPoint, connectionPoint, baseSymbol, additionalSymbol, |
994 | 994 |
# isExceptDetect, detectFlip=1 if flipped else 0, |
995 |
# hasInstrumentLabel=hasInstrumentLabel) |
|
995 |
# hasInstrumentLabel=hasInstrumentLabel, text_area=text_area)
|
|
996 | 996 |
# threadLock.release() |
997 | 997 |
|
998 | 998 |
# Template Matching |
... | ... | |
1198 | 1198 |
I2 = cv2.matchShapes(symbol_contours[i], contour, 2, 0) |
1199 | 1199 |
I3 = cv2.matchShapes(symbol_contours[i], contour, 3, 0) |
1200 | 1200 |
if I1 < 1 and I2 < 1 and I3 < 0.1: |
1201 |
# need shape check |
|
1201 | 1202 |
|
1202 | 1203 |
rect = cv2.boundingRect(contour) |
1203 | 1204 |
results.append([1 - I3, [rect[0], rect[1]]]) |
내보내기 Unified diff