cvhciKIT / sloth

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

Documentation for adding colored RectItem not clear #164

Open isaacgerg opened 6 years ago

isaacgerg commented 6 years ago

I would like to add several classes which are colored differently using the RectItem as a base class. However, I cannot get any of them to work after following the instructions. Is there an example somewhere of how to do this? I am running into dependency issues (e.g. Can't find my new class or classes derived from it).

        return QRectF(float(model_item[self.prefix() + 'x']),
                      float(model_item[self.prefix() + 'y']),
                      float(model_item[self.prefix() + 'width']),
                      float(model_item[self.prefix() + 'height']))

self.prefix() is None.