Skip to content

Latest commit

 

History

History
58 lines (50 loc) · 1008 Bytes

drop_obj_by_class.md

File metadata and controls

58 lines (50 loc) · 1008 Bytes

This layer (drop_obj_by_class) simply removes annotations of specified classes.

{% hint style="info" %} You can also use data layer and map unnecessary classes to __ignore__. {% endhint %}

Settings

  • classes (type: array of strings)

Annotations of classes from array classes will be removed.

{
  "action": "drop_obj_by_class",
  "src": ["$input" ],
  "dst": "$output",
  "settings": {
    "classes": ["class-to-be-removed"]
  }
}

Example

Drop annotations of class numan.

[
  {
    "dst": "$data",
    "src": [
      "example/*"
    ],
    "action": "data",
    "settings": {
      "classes_mapping": "default"
    }
  },
  {
    "action": "drop_obj_by_class",
    "src": ["$data" ],
    "dst": "$output",
    "settings": {
      "classes": ["human"]
    }
  },
  {
    "dst": "example_drop_noise",
    "src": [
      "$output"
    ],
    "action": "supervisely",
    "settings": {}
  }
]