提交 8b5b4ea4 编写于 作者: K Kentaro Wada

Use visible colors as default for auto_shape_color

上级 94b42657
......@@ -3,7 +3,7 @@
## Annotation
```bash
labelme data_annotated --labels labels.txt --nodata --validatelabel exact
labelme data_annotated --labels labels.txt --nodata --validatelabel exact --config '{shift_auto_shape_color: -2}'
labelme data_annotated --labels labels.txt --nodata --labelflags '{.*: [occluded, truncated], person-\d+: [male]}'
```
......
......@@ -3,7 +3,7 @@
## Annotation
```bash
labelme data_annotated --labels labels.txt --nodata --validatelabel exact
labelme data_annotated --labels labels.txt --nodata --validatelabel exact --config '{shift_auto_shape_color: -2}'
```
![](.readme/annotation.jpg)
......
......@@ -4,7 +4,7 @@
## Annotation
```bash
labelme data_annotated --labels labels.txt --nodata --keep-prev
labelme data_annotated --labels labels.txt --nodata --keep-prev --config '{shift_auto_shape_color: -2}'
```
<img src=".readme/00000100.jpg" width="49%" /> <img src=".readme/00000101.jpg" width="49%" />
......
......@@ -993,7 +993,7 @@ class MainWindow(QtWidgets.QMainWindow):
def _get_rgb_by_label(self, label):
item = self.uniqLabelList.findItems(label, Qt.MatchExactly)[0]
label_id = self.uniqLabelList.indexFromItem(item).row() - 1
label_id = self.uniqLabelList.indexFromItem(item).row() + 1
label_id += self._config['shift_auto_shape_color']
return LABEL_COLORMAP[label_id % len(LABEL_COLORMAP)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册