개정판 f6e21bb4
issue #655: angle missing fixed
DTI_PID/DTI_PID/OcrResultDialog.py | ||
---|---|---|
141 | 141 |
docData = AppDocData.instance() |
142 | 142 |
whiteCharList = docData.getConfigs('Text Recognition', 'White Character List') |
143 | 143 |
if len(whiteCharList) is 0: |
144 |
self.textInfoList = TOCR.getTextInfo(img, (round(self.boundingBox.x()), round(self.boundingBox.y())), language='eng') |
|
144 |
self.textInfoList = TOCR.getTextInfo(img, (round(self.boundingBox.x()), round(self.boundingBox.y())), 0, language='eng')
|
|
145 | 145 |
else: |
146 |
self.textInfoList = TOCR.getTextInfo(img, (round(self.boundingBox.x()), round(self.boundingBox.y())), language='eng', conf = whiteCharList[0].value) |
|
146 |
self.textInfoList = TOCR.getTextInfo(img, (round(self.boundingBox.x()), round(self.boundingBox.y())), 0, language='eng', conf = whiteCharList[0].value)
|
|
147 | 147 |
|
148 |
#self.textInfoList = TOCR.getTextInfo(img, (int(self.boundingBox.x()), int(self.boundingBox.y()))) |
|
149 | 148 |
if self.textInfoList is not None and len(self.textInfoList) > 0: |
150 | 149 |
self.ui.detectResultTextEdit.setText(self.getPlainText(self.textInfoList)) |
151 | 150 |
for textInfo in self.textInfoList: |
내보내기 Unified diff