eto-ai / rikai

Parquet-based ML data format optimized for working with unstructured data
https://rikai.readthedocs.io/en/latest/
Apache License 2.0
136 stars 19 forks source link

Box2d label #632

Closed Renkai closed 2 years ago

Renkai commented 2 years ago

I also tried to implement something like this

    sugar_boxes = (
        img
        | box1.with_label('label1') @ {"color": "green", "width": 10}
        | box2.with_label('label2') @ {"color": "green", "width": 10}
    )

But it seems we can't do it by just returning a list for with_label. If we need to enable this sugar, maybe we still need something like ComposedDrawable.

Renkai commented 2 years ago

use https://github.com/eto-ai/rikai/pull/650 instead