Browse Source

Fix _get_rgb_by_label

Kentaro Wada 3 năm trước cách đây
mục cha
commit
57bde081d7
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      labelme/app.py

+ 1 - 0
labelme/app.py

@@ -1147,6 +1147,7 @@ class MainWindow(QtWidgets.QMainWindow):
             return self._config["label_colors"][label]
         elif self._config["default_shape_color"]:
             return self._config["default_shape_color"]
+        return (0, 255, 0)
 
     def remLabels(self, shapes):
         for shape in shapes: