개정판 d03f6dc2
issue #000: - fix and hightlight off
Change-Id: I7417a6284031ec1fa1a1133a8443bab9527ec663
DTI_PID/DTI_PID/OcrResultDialog.py | ||
---|---|---|
80 | 80 |
self.graphicsView.setImage(self.image) |
81 | 81 |
self.graphicsView.zoomImage(False, event=None) |
82 | 82 |
self.ui.horizontalLayoutGraphicsView.addWidget(self.graphicsView) |
83 |
self.setLayout(self.ui.horizontalLayoutGraphicsView) |
|
84 | 83 |
|
85 | 84 |
self.ui.counterClockPushButton_2.clicked.connect(lambda: self.rotateImage(True)) |
86 | 85 |
self.ui.clockPushButton_2.clicked.connect(lambda: self.rotateImage(False)) |
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py | ||
---|---|---|
480 | 480 |
|
481 | 481 |
self.document().setDocumentMargin(0) |
482 | 482 |
white_char_list = app_doc_data.getConfigs('Text Recognition', 'White Character List') |
483 |
self.highlighter = Highlighter(self.document()) |
|
484 |
self.highlighter.white_char_list = white_char_list[0].value if white_char_list else None |
|
483 |
#self.highlighter = Highlighter(self.document())
|
|
484 |
#self.highlighter.white_char_list = white_char_list[0].value if white_char_list else None
|
|
485 | 485 |
|
486 | 486 |
scene.addItem(self) |
487 | 487 |
except Exception as ex: |
DTI_PID/DTI_PID/TextInfo.py | ||
---|---|---|
1 | 1 |
class TextInfo(): |
2 | 2 |
def __init__(self, text, x, y, w, h, angle): |
3 |
self._text = text |
|
3 |
self._text = text.replace('—', '-')
|
|
4 | 4 |
self.x = x |
5 | 5 |
self.y = y |
6 | 6 |
self.w = w |
내보내기 Unified diff