Duplicate Objects
This layer (duplicate_objects) clones figures of required classes.
1
{
2
"dst": "$sample2",
3
"src": [
4
"$sample1"
5
],
6
"action": "duplicate_objects",
7
"settings": {
8
"classes_mapping": {
9
"bitmap-one": "bitmap-two"
10
}
11
}
12
}
Copied!
For the settings above, each figure of class "bitmap-one" will be cloned with class "bitmap-two", leaving the source figure unchanged. This will not create new sample (new image), so both source and resulting figures will belong to the same image.

Settings

  • classes_mapping โ€” dict where keys are existing classes, and values are new names of classes.

Example

Example of usage may be found here.
Last modified 1yr ago
Copy link