HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.35k stars 2.3k forks source link

Double-Click Navigation Issue with Non-Visible OCR Bounding Boxes #4944

Open davidvblumenthal opened 11 months ago

davidvblumenthal commented 11 months ago

Describe the bug Frequently, when you double-click on a bounding box for OCR annotations that is currently outside the visible area of the regions list, the expected behavior of jumping to that specific region in the list doesn't consistently occur.

To Reproduce Steps to reproduce the behavior:

  1. Select a OCR template, upload an image with annotations or pre-annotations.
  2. Double click on a bounding box that is not currently displayed in the region list.
  3. See that nothing happens.

Expected behavior The expected behaviour would be that the region list now displays the bounding box on which i clicked.

Screenshots Bug few: I double clicked on that bounding box but in the region list nothing changes. not_ideal How it should look like: ideal

Environment (please complete the following information):

Additional context If you have a large number of annotations per image, it takes a long time to locate the bounding box you want to edit in the region list. To keep the annotation workflow efficient it is vital that this work reliably.

hogepodge commented 11 months ago

Thanks @davidvblumenthal. I'll bring this to the team and follow up with next steps.

hogepodge commented 11 months ago

Can you share your labeling interface and any other data to help us reproduce this? We're filing an internal ticket to take a look at it.

davidvblumenthal commented 10 months ago

@hogepodge Thanks for the fast reply! I am using this label config:

<View>
  <Image name="image" value="$ocr"/>

  <Labels name="label" toName="image">
    <Label value="Ref_Designator" background="green"/>
    <Label value="Value" background="blue"/>
    <Label value="M_Part_Number" background="yellow"/>
    <Label value="Generic" background="#FFA39E"/>
    <Label value="Port" background="#42F5DD"/>
  </Labels>
  <TextArea name="transcription" toName="image" editable="true" perRegion="true" required="false" maxSubmissions="1" rows="5" placeholder="Recognized Text" displayMode="region-list"/>

  <Rectangle name="bbox" toName="image" strokeWidth="3"/>

  <RectangleLabels name="symbols" toName="image">
    <Label value="A" background="#FFA39E"/>
    <Label value="B" background="#D4380D"/>
    <Label value="C" background="#FFC069"/>
    <Label value="D" background="#AD8B00"/>
    <Label value="E" background="#D3F261"/>
    <Label value="F" background="#389E0D"/>
    <Label value="G" background="#5CDBD3"/>
    <Label value="H" background="#096DD9"/>
    <Label value="I" background="#ADC6FF"/>
    <Label value="I" background="#9254DE"/>
    <Label value="K" background="#F759AB"/>
    <Label value="L" background="#FFA39E"/>
    <Label value="M" background="#D4380D"/>
    <Label value="N" background="#FFC069"/>
    <Label value="O" background="#AD8B00"/>
    <Label value="P" background="#D3F261"/>
    <Label value="Q" background="#389E0D"/>
    <Label value="R" background="#5CDBD3"/>
    <Label value="S" background="#096DD9"/>
    <Label value="T" background="#ADC6FF"/>
    <Label value="U" background="#9254DE"/>
    <Label value="V" background="#F759AB"/>
    <Label value="W" background="#FFA39E"/>
    <Label value="X" background="#D4380D"/>
    <Label value="Y" background="#FFC069"/>
    <Label value="Z" background="#AD8B00"/>
    <Label value="AA" background="#D3F261"/>
    <Label value="BB" background="#389E0D"/>
    <Label value="CC" background="#5CDBD3"/>
    <Label value="DD" background="#096DD9"/>
    <Label value="EE" background="#ADC6FF"/>
    <Label value="FF" background="#9254DE"/>
    <Label value="GG" background="#F759AB"/>
    <Label value="HH" background="#FFA39E"/>
    <Label value="II" background="#D4380D"/>
    <Label value="KK" background="#FFC069"/>
    <Label value="LL" background="#AD8B00"/>
    <Label value="MM" background="#FFA39E"/>
    <Label value="NN" background="#FFA39E"/>
    <Label value="OO" background="#D4380D"/>
    <Label value="PP" background="#FFC069"/>
    <Label value="QQ" background="#AD8B00"/>
    <Label value="RR" background="#FFA39E"/>
  </RectangleLabels>
</View>

And Label Studio Version 1.9.1

Let me know if you need anything else.

BMukhtar commented 8 months ago

same issue, please fix it

BMukhtar commented 8 months ago

duplicate of https://github.com/HumanSignal/label-studio/issues/4752 here i created another one before i saw this issues https://github.com/HumanSignal/label-studio-frontend/issues/1670