-
Notifications
You must be signed in to change notification settings - Fork 4
/
12b-color-tracking-hue.pd
152 lines (152 loc) · 4.35 KB
/
12b-color-tracking-hue.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
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
#N canvas 504 22 904 961 10;
#X declare -lib Gem;
#X msg 334 91 0 \, destroy;
#X obj 327 114 gemwin 12;
#X obj 9 13 cnv 15 400 50 empty empty 12 14 24 0 24 -175655 -66577
0;
#X msg 327 70 create \, 1;
#X obj 303 19 declare -lib Gem;
#X obj 12 84 gemhead;
#X obj 12 107 pix_video;
#X obj 12 151 t a a a a;
#X obj 12 129 pix_rgba;
#X obj 136 815 pix_texture;
#X obj 238 380 pix_threshold;
#X obj 313 224 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 238 359 pix_gain;
#X obj 238 202 pix_separator;
#X obj 12 814 pix_texture;
#X msg 249 332 0 1 0;
#X obj 238 416 pix_add;
#X obj 136 505 pix_gain;
#X obj 136 529 pix_subtract;
#X obj 238 504 pix_gain;
#X obj 238 438 pix_2grey;
#X msg 283 482 0 0 10;
#X msg 181 480 0 0 1;
#X obj 136 591 pix_threshold;
#X obj 249 309 loadbang;
#X obj 390 381 pix_threshold;
#X obj 465 224 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 390 360 pix_gain;
#X obj 390 201 pix_separator;
#X obj 399 312 loadbang;
#X msg 399 333 1 0 0;
#X obj 283 462 loadbang;
#X obj 181 456 loadbang;
#X obj 214 550 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X msg 211 569 0 0 \$1;
#X msg 313 359 0 \$1 0;
#X msg 465 360 \$1 0 0;
#X obj 146 693 gemhead;
#X obj 321 705 vsl 15 140 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 306 857 >;
#X obj 136 613 pix_blob;
#X text 351 514 4 slide this slider until just before the object you
are tracking disappears;
#X obj 12 224 separator;
#X obj 12 201 pix_separator;
#X obj 12 838 rectangle 2 1.5;
#X obj 12 791 translateXYZ -2 0 0;
#X obj 136 791 translateXYZ 2 0 0;
#X obj 136 839 rectangle 2 1.5;
#X obj 203 671 * 4;
#X obj 229 671 * -3;
#X obj 229 693 + 1.5;
#X obj 136 223 separator;
#X obj 136 202 pix_separator;
#X obj 339 703 mapping/timeroll;
#X obj 146 759 circle 0.1;
#X obj 146 669 r \$0-dot;
#X obj 306 879 s \$0-dot;
#X obj 304 672 t f f;
#X obj 146 732 translateXYZ 0 0 0.01;
#X obj 203 693 + 0;
#X obj 304 650 * 25;
#X text 551 817 this slider stops the rendering of the dot if the blob
detection is below a certain threshold.;
#X text 550 774 5 move the object you are tracking so the webcam can
no longer see it. Move this slider up until you are just at that point
that the white dot stops jumping.;
#X text 423 67 1 create gem window;
#X text 502 219 3 slide both these sliders all the way up \, then find
the lowest point you can have the sliders before you cannot see the
object you are tracking in the left window.;
#X text 424 104 2 hold object with primary color blue so you can see
it in the right side of the window.;
#X text 350 544 this slider turns all pixels in each image of the video
that have less than a certain amount of blue to black.;
#X text 503 279 these two sliders turn all pixels in each image of
the video with red and green above a certain threshold to black.;
#X text 9 907 John Harrison \, CRATEL - Wichita State University 2012
;
#X text 11 935 Public domain;
#X text 72 35 Blue Color Tracking;
#X text 464 902 CHALLENGE;
#X text 465 916 Make a red or green color tracker;
#X text 10 921 Max Neupert \, GMU - Bauhaus-Universität Weimar 2012
;
#X text 73 23 Pure Data + Gem;
#X connect 0 0 1 0;
#X connect 3 0 1 0;
#X connect 5 0 6 0;
#X connect 6 0 8 0;
#X connect 7 0 43 0;
#X connect 7 1 52 0;
#X connect 7 2 13 0;
#X connect 7 3 28 0;
#X connect 8 0 7 0;
#X connect 9 0 47 0;
#X connect 10 0 16 0;
#X connect 11 0 35 0;
#X connect 12 0 10 0;
#X connect 13 0 12 0;
#X connect 14 0 44 0;
#X connect 15 0 12 2;
#X connect 16 0 20 0;
#X connect 17 0 18 0;
#X connect 18 0 23 0;
#X connect 19 0 18 1;
#X connect 20 0 19 0;
#X connect 21 0 19 2;
#X connect 22 0 17 2;
#X connect 23 0 40 0;
#X connect 24 0 15 0;
#X connect 25 0 16 1;
#X connect 26 0 36 0;
#X connect 27 0 25 0;
#X connect 28 0 27 0;
#X connect 29 0 30 0;
#X connect 30 0 27 2;
#X connect 31 0 21 0;
#X connect 32 0 22 0;
#X connect 33 0 34 0;
#X connect 34 0 23 2;
#X connect 35 0 10 2;
#X connect 36 0 25 2;
#X connect 37 0 58 0;
#X connect 38 0 39 1;
#X connect 39 0 56 0;
#X connect 40 0 46 0;
#X connect 40 1 48 0;
#X connect 40 2 49 0;
#X connect 40 3 60 0;
#X connect 42 0 45 0;
#X connect 43 0 42 0;
#X connect 45 0 14 0;
#X connect 46 0 9 0;
#X connect 48 0 59 0;
#X connect 49 0 50 0;
#X connect 50 0 58 2;
#X connect 51 0 17 0;
#X connect 52 0 51 0;
#X connect 55 0 37 0;
#X connect 57 0 39 0;
#X connect 57 1 53 0;
#X connect 58 0 54 0;
#X connect 59 0 58 1;
#X connect 60 0 57 0;