From 8a98fb0c86ffa70fe135c4a2aa511b66eb320b3d Mon Sep 17 00:00:00 2001 From: whjdark Date: Wed, 20 Jul 2022 18:44:57 +0800 Subject: [PATCH] new commit --- PPOCRLabel/libs/shape.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PPOCRLabel/libs/shape.py b/PPOCRLabel/libs/shape.py index 180456a1..1b32a6af 100644 --- a/PPOCRLabel/libs/shape.py +++ b/PPOCRLabel/libs/shape.py @@ -125,7 +125,8 @@ 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)))) + # no need, it casuses that font is too small in high-resolusion image + # pen.setWidth(max(1, int(round(2.0 / self.scale)))) painter.setPen(pen) line_path = QPainterPath() -- GitLab