Thinner bounding box edges, and ability to make smaller bounding boxes
Hi @edgargg ,
For the projects I am working on I need very precise bounding boxes. The bounding boxes have thick edges, would it be possible to have these made thinner? Also, for the projects I am working on I need to be able to make very small bounding boxes, would you be able to allow the bounding box to be made smaller then what is currently allowed.
Thank you for any help or feedback you can give for these topics!
Hi
@tsommerfield69
,
Regarding the thinner edges, I think I could add a parameter to control the thickness of the boxes. I will try to add it in the next version.
On the other hand, regarding the boxes size, there is actually a parameter called box_min_size
that sets the minimum size of the boxes:
annotator = image_annotator(box_min_size=0, ...)
Let me know if this helps!
Hi again
@tsommerfield69
, I just added some more parameters to the component in this new release.
Now you can set the boxes thickness with box_thickness
and box_selected_thickness
. You could set both to 0 to have thin edges.
I also added handle_size
to control the size of the resize handlers.
You can install it with:pip install gradio-image-annotation==0.0.7
I hope this solves your issue, if not let me know!
Hi @edgargg , again thank you so much these parameters you added worked perfectly and were exactly what I needed!