Object Mask

../../../_images/kdenlive2504_effects-object_mask.webp

Descrizione

This effect relies on (SAM2)[1] object segmentation. Its purpose is to isolate an object in images or videos like rotoscoping.

Before Object Mask can be used, it must be properly configured and models installed. Please refer to the chapter Configure Object Detection.

Attenzione

Questo effetto funziona solo con la clip selezionata nel contenitore del progetto.

There are two ways to use Object Mask:

../../../_images/kdenlive2504_effects-alpha_object-mask.webp

Object Mask in the effect stack when a clip is selected

  1. Click on create-object-mask Create an Object mask

  2. Use Remove Background when the built-in effects are enabled

Steps to create an Object Mask

../../../_images/kdenlive2504_effects-alpha_object-mask-creation.webp
  1. Add a clip to the project bin

  2. Select in the clip monitor a zone by setting in/out points (3) where the background should be removed

  3. Click on create-object-mask Create an Object mask or Remove Background

../../../_images/kdenlive2504_effects-alpha_object-mask-create-new-mask.webp
  1. click on list-add Create New Mask (4)

  2. Click in the clip monitor to select an object by either dragging a rectangle (5) and LMB (6) to define the object inside the rectangle or by Shift+click (6) to add another part, or CTRL+click to exclude a zone

  3. The mask can be inverted edit-select-invert (7) or the opacity edit-opacity (8) of the mask can be changed in 25% steps

  4. Click on media-record Generate Mask (9)

  5. Wait until the mask is generated.

  6. The process can be canceled by clicking on the minus icon (10)

../../../_images/kdenlive2504_effects-alpha_object-mask-apply.webp
  1. Once the mask is created, select it (11)

  2. You can preview the mask (12) or edit the mask (13) as you like

  3. Apply Mask (14) opens the effect Shape Alpha and the mask get applied

  4. You can edit-delete delete the selected mask (16) or you can document-import import the mask (15) into the project bin as a new clip

  5. Right click on the mask (11) and you can open the containing folder

../../../_images/kdenlive2504_effects-alpha_object-mask-applied.webp