Fix verify image issue 248
This commit is contained in:
parent
508a4c8b37
commit
219e50dbfc
@ -967,11 +967,13 @@ class MainWindow(QMainWindow, WindowMixin):
|
||||
self.imageData = self.labelFile.imageData
|
||||
self.lineColor = QColor(*self.labelFile.lineColor)
|
||||
self.fillColor = QColor(*self.labelFile.fillColor)
|
||||
self.canvas.verified = self.labelFile.verified
|
||||
else:
|
||||
# Load image:
|
||||
# read data first and store for saving into label file.
|
||||
self.imageData = read(unicodeFilePath, None)
|
||||
self.labelFile = None
|
||||
self.canvas.verified = False
|
||||
|
||||
image = QImage.fromData(self.imageData)
|
||||
if image.isNull():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user