Drop by Class
This layer (drop_obj_by_class) simply removes annotations of specified classes.
You can also use data layer and map unnecessary classes to __ignore__.

Settings

  • classes (type: array of strings)
Annotations of classes from array classes will be removed.
1
{
2
"action": "drop_obj_by_class",
3
"src": ["$input" ],
4
"dst": "$output",
5
"settings": {
6
"classes": ["class-to-be-removed"]
7
}
8
}
Copied!

Example

Drop annotations of class numan.
1
[
2
{
3
"dst": "$data",
4
"src": [
5
"example/*"
6
],
7
"action": "data",
8
"settings": {
9
"classes_mapping": "default"
10
}
11
},
12
{
13
"action": "drop_obj_by_class",
14
"src": ["$data" ],
15
"dst": "$output",
16
"settings": {
17
"classes": ["human"]
18
}
19
},
20
{
21
"dst": "example_drop_noise",
22
"src": [
23
"$output"
24
],
25
"action": "supervisely",
26
"settings": {}
27
}
28
]
Copied!
Last modified 1yr ago
Copy link