Duplicate Objects
This layer (duplicate_objects) clones figures of required classes.
"dst": "$sample2",
"src": [
"action": "duplicate_objects",
"settings": {
"classes_mapping": {
"bitmap-one": "bitmap-two"
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.


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


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