TaqBostan / react-image-label

A comprehensive package for tagging images.
10 stars 2 forks source link

How can i change the color of polygon #5

Closed nattafahhm closed 3 weeks ago

nattafahhm commented 2 months ago

I have many categories when I plot polygons or other types of labelling tools. I want to differentiate the colours and background label text for each category. Can you suggest a way to do that? For example, if a polygon represents blueberries, it should be blue with blue text, while a polygon representing strawberries should be red with red text. Thanks a lot.

TaqBostan commented 2 months ago

Hi

We have just released version 1.3.x. In this version, we are going to add some features for colorful annotations. First of all, you can draw/load/save colorful shapes in 1.3.0. Please take care of transparency yourself in 1.3.0 (I tried #27f17640, #276ef140, #efb9746b).

knguyenrise8 commented 2 months ago

Is there a way to change the line color? was able to change the color with 1.3.x but need a way to change the line color

nattafahhm commented 2 months ago

Thanks a lot. I can fill colorful background annotations. If we can change colors for strokes also, it would be nice:)

TaqBostan commented 2 months ago

Glad to hear that. I think we should use the background color and remove the transparency for strokes. Strokes have their own opacity (0.7).

TaqBostan commented 1 month ago

Please install version 1.3.4 for colored lines. @nattafahhm @knguyenrise8