aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_motempl-help.pd
blob: b1ac6d027a76a2cc9d60094d0d1001acdd4b518b (plain)
1
2
3
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#N canvas 1 49 1025 780 10;
#X obj 398 31 gemhead;
#X obj 373 555 pix_texture;
#X obj 373 583 square 2;
#X obj 37 457 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 454 304 gemwin 0;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#N canvas 87 154 247 179 Gem.init 0;
#X obj 118 46 loadbang;
#X msg 118 81 reset;
#X obj 118 113 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 289 80 pd Gem.init;
#X obj 171 266 gemwin;
#X msg 164 226 create \, 1;
#X msg 252 229 destroy;
#X msg 292 186 frame 15;
#X obj 173 176 t b b b;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 10 0;
#X connect 2 1 4 0;
#X connect 2 1 8 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X connect 9 0 6 0;
#X connect 10 0 7 0;
#X connect 10 2 9 0;
#X restore 42 501 pd gemwin;
#X msg 42 477 destroy;
#X text 39 460 Create window and render;
#X obj 200 368 pix_texture;
#X obj 200 396 square 2;
#X obj 266 167 translateXYZ -2 0 0;
#X obj 364 205 separator;
#X obj 342 269 cnv 15 550 251 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 474 -37 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 487 157 unpack 0 0 0;
#X floatatom 477 180 5 0 0 3 length - -;
#X floatatom 526 180 5 0 0 3 width - -;
#X floatatom 576 180 5 0 0 3 height - -;
#X obj 531 138 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 513 103 5 0 10000 1 frame# - -;
#X obj 474 -8 openpanel;
#X msg 474 12 open \$1;
#X obj 462 121 pix_film;
#X msg 480 55 auto \$1;
#X obj 480 37 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 491 79 colorspace Grey;
#X obj 361 240 translateXYZ 4 0 0;
#X obj 504 533 route -1 0 1 2 3 4;
#X floatatom 507 613 5 0 0 0 - - -;
#X floatatom 542 613 5 0 0 0 - - -;
#X floatatom 579 613 5 0 0 0 - - -;
#X floatatom 613 613 5 0 0 0 - - -;
#X floatatom 536 662 5 0 0 0 - - -;
#X floatatom 571 662 5 0 0 0 - - -;
#X floatatom 608 662 5 0 0 0 - - -;
#X floatatom 642 662 5 0 0 0 - - -;
#X floatatom 580 718 5 0 0 0 - - -;
#X floatatom 615 718 5 0 0 0 - - -;
#X floatatom 652 718 5 0 0 0 - - -;
#X floatatom 686 718 5 0 0 0 - - -;
#X obj 504 584 unpack 0 0 0 0 0;
#X obj 533 633 unpack 0 0 0 0 0;
#X obj 577 689 unpack 0 0 0 0 0;
#X floatatom 650 612 5 0 0 0 - - -;
#X floatatom 680 662 5 0 0 0 - - -;
#X floatatom 724 718 5 0 0 0 - - -;
#X text 564 551 For each motion component component;
#X text 626 584 (-1) means the whole image;
#X text 701 610 Xcenter Ycenter Width Height Angle;
#X text 722 661 Xcenter Ycenter Width Height Angle;
#X text 769 717 Xcenter Ycenter Width Height Angle;
#X floatatom 487 393 5 0 0 0 - - -;
#X floatatom 520 367 5 0 0 0 - - -;
#X text 527 395 Threshold value. (default 30);
#X msg 415 366 mhi_duration \$1;
#X floatatom 508 296 5 0 0 0 - - -;
#X msg 393 295 max_time_delta \$1;
#X floatatom 517 320 5 0 0 0 - - -;
#X msg 400 317 min_time_delta \$1;
#X floatatom 541 344 5 0 0 0 - - -;
#X msg 410 341 frame_buffer_num \$1;
#X floatatom 514 411 5 0 0 0 - - -;
#X floatatom 525 430 5 0 0 0 - - -;
#X text 565 432 Max size of the motion component (default 500);
#X text 555 411 Min size of the motion component (default 50);
#X text 578 342 Number of frames in the buffer. (default 4);
#X text 547 294 Max time delta in seconds. (default 0.5);
#X text 558 319 Min time delta in seconds. (default 0.05);
#X obj 371 466 pix_opencv_motempl;
#X msg 374 274 aperture \$1;
#X text 550 275 aperture ( 3 \, 5 or 7 \, default 3 );
#X msg 454 274 3;
#X msg 487 274 5;
#X msg 518 274 7;
#X text 557 368 Maximal duration of motion track in seconds;
#X text 24 88 written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org
);
#X text 26 64 pix_opencv_motempl : opencv motion detection based on
movement history;
#X connect 0 0 21 0;
#X connect 1 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 4 0;
#X connect 7 0 8 0;
#X connect 9 0 7 0;
#X connect 9 0 10 0;
#X connect 10 0 25 0;
#X connect 12 0 19 0;
#X connect 13 0 14 0;
#X connect 13 1 15 0;
#X connect 13 2 16 0;
#X connect 17 0 18 0;
#X connect 18 0 21 1;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 21 0 9 0;
#X connect 21 1 13 0;
#X connect 21 2 17 0;
#X connect 22 0 21 0;
#X connect 23 0 22 0;
#X connect 24 0 21 0;
#X connect 25 0 67 0;
#X connect 26 0 39 0;
#X connect 26 1 40 0;
#X connect 26 2 41 0;
#X connect 39 0 27 0;
#X connect 39 1 28 0;
#X connect 39 2 29 0;
#X connect 39 3 30 0;
#X connect 39 4 42 0;
#X connect 40 0 31 0;
#X connect 40 1 32 0;
#X connect 40 2 33 0;
#X connect 40 3 34 0;
#X connect 40 4 43 0;
#X connect 41 0 35 0;
#X connect 41 1 36 0;
#X connect 41 2 37 0;
#X connect 41 3 38 0;
#X connect 41 4 44 0;
#X connect 50 0 67 1;
#X connect 51 0 53 0;
#X connect 53 0 67 0;
#X connect 54 0 55 0;
#X connect 55 0 67 0;
#X connect 56 0 57 0;
#X connect 57 0 67 0;
#X connect 58 0 59 0;
#X connect 59 0 67 0;
#X connect 60 0 67 2;
#X connect 61 0 67 3;
#X connect 67 0 1 0;
#X connect 67 1 26 0;
#X connect 68 0 67 0;
#X connect 70 0 68 0;
#X connect 71 0 68 0;
#X connect 72 0 68 0;