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
19.46k stars 2.42k forks source link

canRotate="false" can't be used in videos #6518

Open meiibanfa opened 1 month ago

meiibanfa commented 1 month ago

Describe the bug I want to avoid annotators to rotate bounding boxes when annotating for object detection on videos. I'm able to do it by adding canRotate="false" only when tasks are images, but not with videos.

To Reproduce This labeling template for object detection on images does work (bounding boxes can't be rotated):

<View>
  <Image name="image" value="$image" />
  <RectangleLabels name="label" toName="image" canRotate="false">
    <Label value="Airplane" background="green"/>
    <Label value="Car" background="blue"/>
  </RectangleLabels>
</View>

But when I add canRotate="false" anywhere in this labeling template for video annotation, bounbing boxes can still be rotated:

<View>
   <View style="width: 20%; float: left; padding-right: 10px; background: #f1f1f1">
     <Header value="Categorías:" size="3"/>
     <Labels name="label" toName="video" allowEmpty="false" showInline="false">
        <Label value="Airplane" background="#00FF00"/>
        <Label value="Car" background="#800000"/>
     </Labels>
   </View>

   <View style="width: 80%; float: right; backgroud: #FFFFFF">
   <!-- Please specify FPS carefully, it will be used for all project videos -->
   <Video name="video" value="$video" framerate="25.0"/>
   <VideoRectangle name="box" toName="video" canRotate="false" />
  </View>
</View>
rshulman-trigo commented 3 days ago

This would also really help us!