Skip to content

Commit

Permalink
Supported reading from Yolo and VOC formats then switching to YOLO_OBB
Browse files Browse the repository at this point in the history
  • Loading branch information
heshameraqi committed Jan 9, 2019
1 parent 39dea42 commit 88d80cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion labelImg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,6 @@ def loadYOLOTXTByFilename(self, txtPath):
shapes = tYoloParseReader.getShapes()
print (shapes)
self.loadLabels(shapes)
self.canvas.verified = tYoloParseReader.verified

def loadYOLOTOBBXTByFilename(self, txtPath):
if self.filePath is None:
Expand Down
2 changes: 2 additions & 0 deletions libs/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,8 @@ def loadPixmap(self, pixmap):
def loadShapes(self, shapes):
self.shapes = list(shapes)
self.current = None
for s in shapes:
s.updateOBBInfo()
self.repaint()

def setShapeVisible(self, shape, value):
Expand Down
2 changes: 1 addition & 1 deletion libs/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def paint(self, painter):
min_y = min(min_y, point.y())
if min_x != sys.maxsize and min_y != sys.maxsize:
font = QFont()
font.setPointSize(20)
font.setPointSize(10)
font.setBold(True)
painter.setFont(font)
if(self.label == None):
Expand Down

0 comments on commit 88d80cb

Please sign in to comment.