diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 9e67f0cc54818aa5f6e6e7163277c05422f0754f..827f1cf76846d0e232e980bc21f45ae0cd1a640b 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -231,7 +231,7 @@ class MainWindow(QMainWindow): # Create and add a widget for showing current label item index self.indexList = QListWidget() - self.indexList.setMaximumSize(40, 16777215) # limit max width + self.indexList.setMaximumSize(30, 16777215) # limit max width self.indexList.setEditTriggers(QAbstractItemView.NoEditTriggers) # no editable self.indexList.itemSelectionChanged.connect(self.indexSelectionChanged) self.indexList.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) # no scroll Bar diff --git a/PPOCRLabel/libs/canvas.py b/PPOCRLabel/libs/canvas.py index 81f37995126140b03650f5ddea37ea282d5ceb09..ae9511612a2ba83001c12ae8ed82498952207f98 100644 --- a/PPOCRLabel/libs/canvas.py +++ b/PPOCRLabel/libs/canvas.py @@ -627,7 +627,7 @@ class Canvas(QWidget): # adaptive BBOX label & index font size if self.pixmap: h, w = self.pixmap.size().height(), self.pixmap.size().width() - fontszie = int(max(h, w) / 48) + fontszie = int(max(h, w) / 96) for s in self.shapes: s.fontsize = fontszie diff --git a/PPOCRLabel/libs/shape.py b/PPOCRLabel/libs/shape.py index 121e43b8aee62dd3e5e0b2e2fbdebf10e775f57b..3eda5bdfa13b8c5369dec69bf803145e0fc3ce13 100644 --- a/PPOCRLabel/libs/shape.py +++ b/PPOCRLabel/libs/shape.py @@ -126,7 +126,7 @@ class Shape(object): color = self.select_line_color if self.selected else self.line_color pen = QPen(color) # Try using integer sizes for smoother drawing(?) - pen.setWidth(max(1, int(round(2.0 / self.scale)))) + # pen.setWidth(max(1, int(round(2.0 / self.scale)))) painter.setPen(pen) line_path = QPainterPath()