Explorar el Código

Fix _get_rgb_by_label

Kentaro Wada hace 3 años
padre
commit
57bde081d7
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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: