tracker.xml 5.18 KB
Newer Older
1
<!DOCTYPE kpartgui>
2
<group>
3
<effect tag="opencv.tracker" id="opencv.tracker" condition="results" sync_in_out="1">
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    <name>Motion Tracker</name>
    <description>Select a zone to follow its movements</description>
    <author>Jean-Baptiste Mardelle</author>
    <parameter type="geometry" name="rect" default="50%,50%:25%x25%" fixed="1" opacity="false" conditional="1">
        <name>Rectangle</name>
    </parameter>
    <parameter type="list" name="algo" default="KCF" paramlist="KCF;MIL;BOOSTING;TLD" conditional="1">
        <paramlistdisplay>KCF,MIL,Boosting,TLD</paramlistdisplay>
        <name>Tracker algorithm</name>
    </parameter>
    <parameter type="constant" name="steps" default="5" min="0" max="120">
        <name>Keyframes spacing</name>
        <comment>Defines the frequency of stored keyframes. A keyframe is created every steps frames.</comment>
    </parameter>
    <parameter type="list" name="shape" default="0" paramlist="0;1;2">
        <paramlistdisplay>Rectangle,Ellipse,Arrow</paramlistdisplay>
        <name>Frame shape</name>
    </parameter>
    <parameter type="constant" name="shape_width" max="100" min="-1" default="1" suffix="pixels">
        <name>Shape width</name>
    </parameter>
    <parameter type="color" name="shape_color" default="0xff0000ff">
        <name>Shape color</name>
    </parameter>
    <parameter type="constant" name="blur" max="200" min="0" default="0">
        <name>Blur</name>
    </parameter>
    <parameter type="list" name="blur_type" default="0" paramlist="0;1">
        <paramlistdisplay>Median Blur,Gaussian Blur</paramlistdisplay>
        <name>Blur type</name>
    </parameter>
    <parameter type="readonly" name="results" value="">
        <name>Tracking data</name>
        <comment>Click to copy to clipboard</comment>
    </parameter>
39
40
41
    <parameter type="filterjob" filtertag="opencv.tracker" consumer="null" consumerparams=" all=1 terminate_on_pause=1">
        <name conditional="Reset">Analyse</name>
        <jobparam name="conditionalinfo">Filter is in preview mode. Click Analyse to see real effect</jobparam>
42
43
        <jobparam name="key">results</jobparam>
        <jobparam name="finalfilter">opencv.tracker</jobparam>
44
        <jobparam name="displaydataname">Motion tracking</jobparam>
45
    </parameter>
46
</effect>
47
48
49
50
<effect tag="opencv.tracker" id="opencv.tracker" condition="results" sync_in_out="1" version="2">
    <name>Motion Tracker</name>
    <description>Select a zone to follow its movements</description>
    <author>Jean-Baptiste Mardelle</author>
51
    <parameter type="geometry" name="rect" default="50% 50% 25% 25%" fixed="1" opacity="false" conditional="1">
52
53
        <name>Rectangle</name>
    </parameter>
54
55
    <parameter type="listdependency" name="algo" default="KCF" paramlist="KCF;CSRT;MOSSE;MIL;BOOSTING;MEDIANFLOW;DaSIAM" conditional="1">
        <paramlistdisplay>KCF,CSRT,MOSSE,MIL,Boosting,MedianFlow,DaSIAM</paramlistdisplay>
56
        <name>Tracker algorithm</name>
57
        <paramdependencies value="DaSIAM" files="dasiamrpn_model.onnx;dasiamrpn_kernel_r1.onnx;dasiamrpn_kernel_cls1.onnx" folder="/opencvmodels">Required model files for DaSiam Tracker not found in &lt;a href="file://%folder"&gt;models folder&lt;/a&gt;. Check our &lt;a href="https://kdenlive.org"&gt;wiki&lt;/a&gt; for instructions.</paramdependencies>
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
    </parameter>
    <parameter type="constant" name="steps" default="5" min="0" max="120">
        <name>Keyframes spacing</name>
        <comment>Defines the frequency of stored keyframes. A keyframe is created every steps frames.</comment>
    </parameter>
    <parameter type="list" name="shape" default="0" paramlist="0;1;2">
        <paramlistdisplay>Rectangle,Ellipse,Arrow</paramlistdisplay>
        <name>Frame shape</name>
    </parameter>
    <parameter type="constant" name="shape_width" max="100" min="-1" default="1" suffix="pixels">
        <name>Shape width</name>
    </parameter>
    <parameter type="color" name="shape_color" default="0xff0000ff">
        <name>Shape color</name>
    </parameter>
73
74
75
    <parameter type="constant" name="pixelate" max="200" min="0" default="0">
        <name>Pixelate</name>
    </parameter>
76
77
78
79
80
81
82
    <parameter type="constant" name="blur" max="200" min="0" default="0">
        <name>Blur</name>
    </parameter>
    <parameter type="list" name="blur_type" default="0" paramlist="0;1">
        <paramlistdisplay>Median Blur,Gaussian Blur</paramlistdisplay>
        <name>Blur type</name>
    </parameter>
83
84
    <parameter type="hidden" name="modelsfolder" default="">
    </parameter>
85
86
87
88
    <parameter type="readonly" name="results" value="">
        <name>Tracking data</name>
        <comment>Click to copy to clipboard</comment>
    </parameter>
89
    <parameter type="filterjob" filtertag="opencv.tracker" consumer="null" consumerparams="all=1 terminate_on_pause=1 audio_off=1 no_meta=1 real_time=-1">
90
91
92
93
94
        <name conditional="Reset">Analyse</name>
        <jobparam name="conditionalinfo">Filter is in preview mode. Click Analyse to see real effect</jobparam>
        <jobparam name="key">results</jobparam>
        <jobparam name="finalfilter">opencv.tracker</jobparam>
        <jobparam name="displaydataname">Motion tracking</jobparam>
95
        <jobparam name="relativeInOut">1</jobparam>
96
97
98
    </parameter>
</effect>
</group>