Ango Export to PNG Mask Converter Plugin

The Ango to Mask plugin allows you to download your polygons and segmentations in a PNG format as a mask.

Plugin Functionality

Adding the plugin to your organization will allow you to download the polygon and segmentations in your project as a PNG mask.

Using the Ango to Mask Converter Plugin

From the Plugin Directory, search for the the name of the converter plugin of your choice and install the plugin to your organization. More information on installing plugins can be found in the Installing Plugins page.

Currently, the names of the plugin is the following:

  • [Ango] to [Mask] Converter


Navigate to the project where you'd like to get the export.

Enter the Settings tab, then the Plugins section.

Find the plugin, and click on Open. A dialog will appear:

Ensure the dot before the plugin's name is green. The dot indicates the plugin's status, where green signifies the plugin's code is running, and red signifies the plugin's code is not running.

You will not be able to run plugins the code of which isn't running.

If you wish to receive an email when the export is complete, toggle Send Email on.

You may vary a number of settings related to your export from the Config JSON field. Each option is detailed below:

Plugin Configuration

  • class_mapping_type: set this to any one value among the following to determine the color values of the resulting PNG:

    • single_channel_sequential [1-channel mask (grayscale image)]

      • {'class_1': 1, 'class_2': 2, 'class_3': 3, ...}

    • single_channel_diverging [1-channel mask (grayscale image)]

      • {'class_1': 255, 'class_2': 128, 'class_3': 192, 'class_4': 64 ...}

    • multi_channel_qualitative [3-channel mask (color image)] → Pre-defined colors

      • 'class_1': (R1, G1, B1), 'class_2': (R2, G2, B2), 'class_3': (R3, G3, B3), ...}

    • project_colors [3-channel mask (color image)] → colors used on the AngoHub

      • 'class_1': (R1, G1, B1), 'class_2': (R2, G2, B2), 'class_3': (R3, G3, B3), ...}

  • export_reviewed_assets: set this to true to get the export of labeling tasks that have been reviewed.

  • export_labeled_assets: set this to true to get the export of labeling tasks that have been labeled. (e.g., by turning this off, you can choose to only get the export for tasks that have been reviewed, or by doing the opposite, only of tasks that have not.)

  • batch_names: enter a list of batch names here to only export assets belonging to the specified assets.

    • Example: "batch_names": ["my_batch_1", "my_batch_2"]

  • verbose: set this to true to turn on logging for the plugin. See here for more on how to see plugin logs.

  • verbose_frequency: the interval at which a log message will be sent.

    • For example, if you set this to 10, you will get a log message every time 10 assets are processed.

Click on Run to receive your export. You'll get a notification when it's ready. Clicking on the notification will start the download of your export.

Last updated