개정판 790937a5
issue #589: flowMark
Change-Id: I5c7dd45acd71210edf87b9b7fec3549b04ddd3a3
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
1135 | 1135 |
cv2.line(img, (round(ptStart[0]), round(ptStart[1])), (round(ptEnd[0]), round(ptEnd[1])), color, thickness) |
1136 | 1136 |
# up to here |
1137 | 1137 |
|
1138 |
if self.flowMark is not None: |
|
1139 |
x, y, w, h = self.flowMark[0] |
|
1140 |
img[y:(y+h), x:(x+w)] = color |
|
1138 |
#if self.flowMark is not None:
|
|
1139 |
# x, y, w, h = self.flowMark[0]
|
|
1140 |
# img[y:(y+h), x:(x+w)] = color
|
|
1141 | 1141 |
except Exception as ex: |
1142 | 1142 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
1143 | 1143 |
|
내보내기 Unified diff