UniversalDataTool / universal-data-tool

Collaborate & label any type of data, images, text, or documents, in an easy web interface or desktop app.
https://universaldatatool.com
MIT License
1.96k stars 190 forks source link

[BUG] Image bounding box resizes to a single point upon clicking "hide" and "show" #404

Open ianlcassidy opened 3 years ago

ianlcassidy commented 3 years ago

Describe the bug When drawing multiple bounding boxes near each other (sometimes for overlapping objects in an image) clicking the hide button and then the show button will resize the bounding box to a single point. This results in the annotation being lost.

To Reproduce

Expected behavior The annotation should become hidden upon clicking the hide button and then should reappear (with the same annotation) when the button is clicked again.

Screenshots

Screen Shot 2020-12-11 at 3 39 44 PM Screen Shot 2020-12-11 at 3 39 56 PM Screen Shot 2020-12-11 at 3 40 06 PM

Desktop (please complete the following information):

jeremydouglass commented 3 years ago

I am seeing something similar on the https://udt.dev/ demo site with a single box annotation using Brave Version 1.29.76 Chromium: 93.0.4577.58 (Official Build) (x86_64).

  1. Create Image Segmentation project
  2. create a Bounding Box annotation "panel"
  3. load a jpg image from URL as sample data
  4. annotate the image with a single bounding box of type panel.
Screen Shot 2021-09-02 at 10 18 03 AM b
  1. on the regions bar, next to the region indicator "# 1" click the "hide" eye icon
  2. click "show" -- the region box now has a size of one pixel and the label has disappeared.
Screen Shot 2021-09-02 at 10 18 37 AM

I also added two browsers to the same test session https://udt.dev/?s=4riDE3 -- Chrome and Brave -- and it was true for both of them when operating on different images.