개정판 896ccfed
issue #000: withhold single char text item removing
Change-Id: I34187f5bd7e2e728cd91f255dbce87f820684ab2
DTI_PID/DTI_PID/TextDetector.py | ||
---|---|---|
289 | 289 |
if data: self.textInfoList.extend(data) |
290 | 290 |
pool.shutdown(wait = True) |
291 | 291 |
|
292 |
# remove text item has only 1 character |
|
293 |
for index in range(len(self.textInfoList) - 1, -1, -1): |
|
294 |
if len(self.textInfoList[index].getText()) is 1: |
|
295 |
self.textInfoList.pop(index) |
|
292 |
## remove text item has only 1 character
|
|
293 |
#for index in range(len(self.textInfoList) - 1, -1, -1):
|
|
294 |
# if len(self.textInfoList[index].getText()) is 1:
|
|
295 |
# self.textInfoList.pop(index)
|
|
296 | 296 |
|
297 | 297 |
if onlyTextArea: |
298 | 298 |
return |
내보내기 Unified diff