Closed Renkai closed 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.
with_label
ComposedDrawable
use https://github.com/eto-ai/rikai/pull/650 instead
I also tried to implement something like this
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 likeComposedDrawable
.