Kdenlive/Підручник/Ефекти/Розмивання і приховування/Автоматичне маскування

Revision as of 12:08, 22 July 2019 by Yurchor (talk | contribs) (Created page with "==== Як застосувати автоматичне маскування ==== Ознайомтеся із відео, наведеним нижче, щоб дізнати...")
Jump to: navigation, search
Other languages:
English • ‎dansk • ‎українська

Автоматичне маскування

Цим ефектом можна скористатися для маскування облич людей. Він використовує оцінку руху для стеження за суб'єктами і маскування облич. Це фільтр MLT autotrack_rectangle


Як застосувати автоматичне маскування

Ознайомтеся із відео, наведеним нижче, щоб дізнатися про те, як застосувати цей ефект. Попередження: робота ефекту не є 100% надійною.

Motion Tracking

The Auto Mask effect can also be used to track motion of an object and use it later as keyframes for an effect / transition.

The method described here is a re-purposing of the motion tracking data that the Auto Mask effect calculates. You do not need to follow the method described below to generate an Auto Mask that will obscure faces. The instructions in the above video should be enough. Nor can you use the method describe below to improve the tracking of the mask created by the Auto Mask effect.

To use this feature, first add the clip you want to analyse in timeline, and add the "Auto Mask" effect to it - Figure 1.

Figure 1.

Go to the first frame where your object is visible, and adjust the yellow rectangle so that is surrounds the object, like the hand in Figure 1.

Then click on the Analyse button in the effect options. This will start an analysis of the clip (you can follow its progress in the Project Tree view).

Figure 2.

When the job is finished, the motion tracking data is stored in the clip properties. To use this data, you can for example add a title clip and affine transition over the clip you just analysed, like in the screenshot in Figure 2..

Figure 3.

Next step is to import the motion data in the transition. To do this, first select the clip you have analysed, then select the transition using the CTRL key so that both items are selected. Finally, go in the transitions's Options menu Kdenlive Affine options button.png and select Import keyframes from clip. You can now delete the "Auto Mask" effect from the clip in timeline and play the project to see your title clip following the object.

Figure 4.

Checking the Limit keyframes number checkbox In the "Import Keyframes" dialog (Figure 4) will cause Kdenlive to only import every nth frame (where n is the number selected in the combo box). This is a useful feature if you want to manually edit the keyframes that are imported because it allows you limit the number of key frames you will need to manually edit. If this check box is not checked then you import a key frame for every frame that is in the source clip.

Deleting Motion Tracking Data

The motion tracking data is saved with the clip properties. You can view this data from the clip properties Analysis tab - Figure 5. Delete the data using button 1

Figure 5 - Clip Properties - Analysis tab.

Content is available under Creative Commons License SA 4.0 unless otherwise noted.