개정판 853c2faf
issue #000: flip key on goning
Change-Id: I1c50e51e1bcc4712665eca949cd8feee248e7e26
DTI_PID/DTI_PID/TextDetector.py | ||
---|---|---|
182 | 182 |
w = rect[1].width() |
183 | 183 |
h = rect[1].height() |
184 | 184 |
img = contourImg[y:y+h, x:x+w] |
185 |
## DEBUG |
|
185 | 186 |
#if angle == 0: |
186 | 187 |
# filePath = os.path.join(project.getTempPath(), "Tile", "H-{}-{}-{}-{}.png".format(x,y,w,h)) |
187 | 188 |
#else: |
188 | 189 |
# filePath = os.path.join(project.getTempPath(), "Tile", "V-{}-{}-{}-{}.png".format(x,y,w,h)) |
189 | 190 |
#cv2.imwrite(filePath, img) |
191 |
## up to here |
|
190 | 192 |
|
191 | 193 |
return list |
192 | 194 |
|
내보내기 Unified diff