HumanSignal/label-studio

Exporting as PNG does not give the background/color for the annotation

Open

#2.482 aberto em 8 de jun. de 2022

Ver no GitHub
 (3 comments) (0 reactions) (1 assignee)JavaScript (1.881 forks)batch import
exportfeaturegood first issueimagesoften askedsegmentation

Métricas do repositório

Stars
 (15.334 stars)
Métricas de merge de PR
 (Mesclagem média 2d 14h) (17 fundiu PRs em 30d)

Description

Describe the bug When exporting a brush annotation as a PNG, the output is not mapped by the background colors specified in (Settings > Labeling Interface). In addition, when exporting as a JSON, the background colors for the attributes are not specified anywhere, leaving the values that were selected in the interface as arbitrary and as not linked to any of the outputs.

To Reproduce Steps to reproduce the behavior:

  1. Go to Projects page for a certain project (should see Projects/<Name_of_Project> in the top left corner)
  2. Click on Export on the top right banner above the image list
  3. Select 'Brush labels to PNG' or 'JSON'
  4. In the case of the brush label output, there isn't a consolidated image with color
  5. If I was to use the JSON to convert to an image format, the background color of each label isn't provided in the export either.

A different, but related issue, to our use of the product is if there's a functionality to prevent overlapping of labels (only 1 label at maximum is applied to each pixel)? If so, how can we configure it?

Expected behavior Ideally, I would be able to export an image that by design associates each color to their respective label region.

Environment (please complete the following information):

  • OS: Linux CentOS
  • Label Studio Version 1.4.1

Guia do colaborador