-
Notifications
You must be signed in to change notification settings - Fork 4
/
05c-movement2.pd
52 lines (52 loc) · 1.58 KB
/
05c-movement2.pd
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
#N canvas 731 297 474 576 10;
#X declare -lib Gem;
#X obj 28 8 cnv 15 400 50 empty empty 5c 14 24 0 24 -175655 -66577
0;
#X obj 31 186 gemwin;
#X msg 31 130 create \, 1;
#X msg 39 156 0 \, destroy;
#X obj 129 130 gemhead;
#X obj 129 373 pix_texture;
#X obj 129 397 rectangle 4 3;
#X text 237 125 This is a render-chain.;
#X text 239 139 Always start it with gemhead.;
#X text 237 168 takes the video image from your camera;
#X text 241 373 textures the video image;
#X text 242 399 onto an rectangle;
#X obj 129 195 pix_rgba;
#X text 237 197 converts the colorspace;
#X obj 129 311 alpha;
#X obj 139 290 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 265 265 compares the frames;
#X text 240 292 enables the alpha channel;
#X text 75 29 Using the camera to extract motion from the live video
;
#X text 36 438 use;
#X obj 64 439 pix_blob;
#X text 123 438 to express the detected movement in a number.;
#X text 35 419 Challenge:;
#X obj 129 167 pix_video;
#X obj 129 343 mn-flip;
#X floatatom 190 242 5 0 1 0 - - -;
#X text 29 67 the pix_movement2 object allows a lower and higher threshold
;
#X obj 129 266 pix_movement2 0.2 0.5;
#X floatatom 252 242 5 0 1 0 - - -;
#X text 292 242 low and high thresholds;
#X obj 325 11 declare -lib Gem;
#X text 29 549 Max Neupert \, GMU - Bauhaus-Universität Weimar 2008-2012
;
#X text 75 16 Pure Data + Gem;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 23 0;
#X connect 5 0 6 0;
#X connect 12 0 27 0;
#X connect 14 0 24 0;
#X connect 15 0 14 0;
#X connect 23 0 12 0;
#X connect 24 0 5 0;
#X connect 25 0 27 1;
#X connect 27 0 14 0;
#X connect 28 0 27 2;