Skip to content

VideoRectangle labels do not save their rotation metadata in 1.21.0+ #8648

@anniepires

Description

@anniepires

Describe the bug
Creating rotated VideoRectangle labels in LabelStudio 1.21.0+ no longer retain/save their rotation data.
See the following example, running the heartexlabs/label-studio:1.21.0 docker container:

Image

Other image versions tried:

  • locally built off the current version of label-studio/develop

To Reproduce
Steps to reproduce the behavior:

  1. Spin up container, configure project - say with this config:
 <View>
    <Labels name="videoLabels" toName="video">
        <Label value="LabelClass" />
    </Labels>
    <Video name="video" value="$video" framerate="10" muted="true" />
    <VideoRectangle name="box" toName="video" smart="true" />
</View>
  1. Create any rotated VideoRectangle label, then submit
  2. Observe non-rotated video label upon refresh
  3. Cry

Expected behavior:
Created VideoRectangle labels should save their input rotation, and be saved/presented as it was when it was rotated. See the following example, running the heartexlabs/label-studio:1.20.0 docker container:

Image

Environment (please complete the following information):

  • OS: [Docker] - Ran in arm/linux (mac) and amd/linux
  • Label Studio Version: 1.21.0+

Metadata

Metadata

Assignees

No one assigned

    Labels

    fix planned 🚧Acknowledged and forwarded to the engineering team — fix planned.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions