cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
611 stars 198 forks source link

Text attribute doesn't display as it should be #122

Closed panovr closed 7 years ago

panovr commented 7 years ago

Sloth document for text attribute said that:

For below custom configuration, the text "Left Eye" still display as "left_eye" in the Properties dock.

LABELS = (
    {"attributes": {"type":  "rect",
                    "class": "head",
                    "id":    ["Martin", "Mika"]},
     "item":     "sloth.items.RectItem",
     "inserter": "sloth.items.RectItemInserter",
     "text":     "Head"
    },

    {"attributes": {"type":  "point",
                    "class": "left_eye",
                    "id":    ["Martin", "Mika"]},
     "item":     "sloth.items.PointItem",
     "inserter": "sloth.items.PointItemInserter",
     "text":     "Left Eye"
    },

    {"attributes": {"type":  "point",
                    "class": "right_eye",
                    "id":    ["Martin", "Mika"]},
     "item":     "sloth.items.PointItem",
     "inserter": "sloth.items.PointItemInserter",
     "text":     "Right Eye"
    },
)
iFreilicht commented 7 years ago

Can confirm this. The UI is actually using the class attribute, not text.

nilsonholger commented 7 years ago

Fixed, thx to @Tibor2, merged!