개정판 98861008
issue #000: fix flip detection
Change-Id: I7168346509e45c047d2d69fe4562657fa3f4b03c
DTI_PID/DTI_PID/symbol.py | ||
---|---|---|
19 | 19 |
, isDetectOnOrigin, rotationCount, ocrOption, isContainChild |
20 | 20 |
, originalPoint, connectionPoint, baseSymbol, additionalSymbol, isExceptDetect |
21 | 21 |
, hasInstrumentLabel, uid, detectFlip=detectFlip, text_area=text_area) |
22 |
|
|
23 |
if detectFlip == 1: |
|
24 |
if abs(rotatedAngle - 90) < 1: |
|
25 |
rotatedAngle = 270 |
|
26 |
elif abs(rotatedAngle - 270) < 1: |
|
27 |
rotatedAngle = 90 |
|
28 |
|
|
22 | 29 |
self.sp = sp |
23 | 30 |
self.width = width |
24 | 31 |
self.height = height |
내보내기 Unified diff