Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meiibanfa opened this issue Oct 15, 2024 · 0 comments
Open

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

meiibanfa opened this issue Oct 15, 2024 · 0 comments

Comments

@meiibanfa
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant