Commit a149048e authored by J Reso's avatar J Reso
Browse files

add track-fiducials

parent 54880e49
Pipeline #4098 skipped
#N canvas 1 133 150 687 10;
#N canvas 0 0 150 687 10;
#X declare -path abstractions/in -path abstractions/numbers -path abstractions/audio
-path abstractions/video -path abstractions/core -path abstractions/out
-path abstractions -path abstractions/brutbox;
......
#N canvas 241 77 470 574 10;
#X obj 164 120 inlet;
#X obj 164 188 unpack f f f;
#X msg 240 152 0 0 0;
#X obj 72 372 translateXYZ 0 0 0;
#X obj 30 185 gemhead 90;
#X obj 107 306 * 8;
#X obj 107 327 - 4;
#X obj 142 305 * 6;
#X obj 142 325 - 3;
#X obj 233 359 / 6.28;
#X obj 233 379 * 360;
#X obj 72 416 rotateXYZ 0 0 0;
#X obj 72 521 text3d \$1;
#X obj 233 316 * -1;
#X obj 233 336 + 1;
#X obj 233 399 + 33.333;
#X text 160 101 list (x \, y \, angle);
#X obj 72 445 color \$2 \$3 \$4;
#X obj 164 151 route \$1;
#X obj 30 133 inlet;
#X text 29 115 toggle;
#X obj 240 130 r \$0-lb;
#X obj 123 475 r \$0-lb;
#X obj 357 155 initbang;
#X obj 357 183 s \$0-lb;
#X msg 123 501 5;
#X obj 278 254 v GEM_W;
#X obj 352 253 v GEM_H;
#X obj 307 208 r \$0-lb;
#X obj 282 279 t f f;
#X obj 348 275 t f f;
#X obj 287 307 * 2;
#X obj 343 306 * 2;
#X text 71 9 Display fiducials infos \; ----------------------- \;
Arguments \; \$1: Fiducual ID \; \$2 \, \$3 \, \$4 : color;
#X text 139 524 < Display the ID;
#X obj 128 223 change;
#X obj 44 250 spigot 1;
#X obj 129 248 t b b;
#X obj 176 256 delay 2000;
#X msg 123 277 1;
#X msg 172 282 0;
#X obj 63 307 spigot 1;
#X obj 30 163 route float on;
#X connect 0 0 18 0;
#X connect 1 0 5 0;
#X connect 1 0 35 0;
#X connect 1 1 7 0;
#X connect 1 2 13 0;
#X connect 2 0 1 0;
#X connect 3 0 11 0;
#X connect 4 0 36 0;
#X connect 5 0 6 0;
#X connect 6 0 3 1;
#X connect 7 0 8 0;
#X connect 8 0 3 2;
#X connect 9 0 10 0;
#X connect 10 0 15 0;
#X connect 11 0 17 0;
#X connect 13 0 14 0;
#X connect 14 0 9 0;
#X connect 15 0 11 3;
#X connect 17 0 12 0;
#X connect 18 0 1 0;
#X connect 19 0 42 0;
#X connect 21 0 2 0;
#X connect 22 0 25 0;
#X connect 23 0 24 0;
#X connect 25 0 12 1;
#X connect 26 0 29 0;
#X connect 27 0 30 0;
#X connect 28 0 27 0;
#X connect 28 0 26 0;
#X connect 29 0 31 0;
#X connect 29 1 6 1;
#X connect 30 0 32 0;
#X connect 30 1 8 1;
#X connect 31 0 5 1;
#X connect 32 0 7 1;
#X connect 35 0 37 0;
#X connect 36 0 41 0;
#X connect 37 0 39 0;
#X connect 37 1 38 0;
#X connect 38 0 40 0;
#X connect 39 0 36 1;
#X connect 40 0 36 1;
#X connect 41 0 3 0;
#X connect 42 0 4 0;
#X connect 42 1 41 1;
#N canvas 133 99 506 497 10;
#N canvas 131 98 506 497 10;
#X msg 111 370 add \$1;
#X obj 212 141 loadbang;
#X msg 239 352 clear;
......@@ -6,10 +6,10 @@
#X obj 47 366 r \$0-bang;
#X obj 284 361 loadbang;
#X obj 102 101 hradio 16 1 0 6 \$0-bang empty empty 0 -4 0 10 -262144
-1 -1 4;
-1 -1 0;
#X obj 47 387 b;
#X msg 284 387 colors #777 white black;
#X obj 100 100 cnv 16 102 18 empty \$0-cnv VIDEO 5 10 1 12 -233017
#X obj 100 100 cnv 16 102 18 empty \$0-cnv INPUTS 5 10 1 12 -233017
-66577 0;
#X obj 221 186 b;
#X obj 221 164 r CURRENT-FILE;
......@@ -57,7 +57,7 @@
#X obj 111 229 f 0;
#X obj 227 421 pack s s;
#X msg 227 443 \; M-OBJECT \$2 \$1;
#N canvas 494 356 584 363 -BONUS- 0;
#N canvas 492 355 584 363 -BONUS- 0;
#X obj 234 62 symbol \$1;
#X obj 236 267 symbol;
#X obj 164 8 inlet;
......@@ -69,8 +69,8 @@
#X obj 165 28 t b b b;
#X obj 90 69 symbol \$1;
#X obj 90 91 sel in out;
#X msg 58 141 video-in;
#X msg 132 145 video-object \, video-out \, video-text;
#X msg 36 148 video-camera;
#X connect 0 0 4 0;
#X connect 1 0 3 0;
#X connect 2 0 8 0;
......@@ -82,8 +82,8 @@
#X connect 8 1 7 0;
#X connect 8 2 0 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 10 1 12 0;
#X connect 10 0 12 0;
#X connect 10 1 11 0;
#X connect 11 0 1 0;
#X connect 12 0 1 0;
#X restore 130 286 pd -BONUS-;
......
0122222212212121111
0122212221222121111
0122212221221221111
0122212221212121111
0122222212221211111
0122221221221221111
0122212212212211111
0122221222122121111
0122222222212111111
0122221221212121111
0122222122221211111
0122221222122211111
0122222222222121111
0122221212121211111
0122222121212121111
0122222121212111111
0122212212212121111
0122222212222211111
0122222212212211111
0122221222121211111
0122222221221221111
0122222122222121111
0122222222212211111
0122212212121211111
0122222212222121111
0122122122121211111
0122222212121211111
0122222222122211111
0122221221221211111
0122222222222211111
0122222122212111111
0122212221212111111
0122222122122111111
0122212121212121111
0122222221212111111
0122222221221211111
0122222212222111111
0122222221222211111
0122212212212111111
0122222212221221111
0122221222122111111
0122222222122121111
0122221222212111111
0122222222122111111
0122222222222221111
0122222122212121111
0122222122122121111
0122222222121211111
0122212221221211111
0121212121212121111
0122222222212221111
0122222222221211111
0122222222121111111
0122222221222221111
0122222222222111111
0122222212212111111
0122222212222221111
0122222221212121111
0122221222212211111
0122121212121211111
0122222221222121111
0122222221222111111
0122222122221221111
0122122122122111111
0122221222212121111
0122222122212221111
0122222122212211111
0122222222221221111
0122221221221111111
0122212121212111111
0122221222212221111
0122212221221111111
0122222222122221111
0122221212121111111
0122122121212121111
0121212121212111111
0122212221222111111
0122222222221111111
0122221221212111111
0122222222212121111
0122222212221111111
0122221222211111111
0122122122122121111
0122221222121111111
0122222122121211111
0122222122211111111
0122222221221111111
0122222122222111111
0122122121212111111
0122222212211111111
#N canvas 701 145 574 482 10;
#X msg 402 133 create \, 1;
#X obj 402 187 gemwin;
#X msg 412 158 0 \, destroy;
#X text 478 133 <- on;
#X text 482 159 <- off;
#X obj 402 75 t b b;
#X msg 429 103 reset \, dimen 640 480;
#X obj 402 53 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 223 204 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 223 224 debug \$1;
#X obj 48 243 video-camera;
#X obj 225 354 unpack f f f f;
#X floatatom 225 376 5 0 0 0 - - -;
#X floatatom 259 377 5 0 0 0 - - -;
#X floatatom 294 378 5 0 0 0 - - -;
#X floatatom 329 377 5 0 0 0 - - -;
#X obj 48 409 video-out;
#X obj 227 255 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 227 275 on \$1;
#X obj 49 293 track-fiducials;
#X text 39 25 track-fiducials \; --------------- \; Track fiducials
shapes \; \; \$1: gemList \; \$2: list (ID \, x \, y \, angle) \;;
#X connect 0 0 1 0;
#X connect 2 0 1 0;
#X connect 5 0 0 0;
#X connect 5 1 6 0;
#X connect 6 0 1 0;
#X connect 7 0 5 0;
#X connect 8 0 9 0;
#X connect 9 0 19 1;
#X connect 10 0 19 0;
#X connect 11 0 12 0;
#X connect 11 1 13 0;
#X connect 11 2 14 0;
#X connect 11 3 15 0;
#X connect 17 0 18 0;
#X connect 18 0 19 1;
#X connect 19 0 16 0;
#X connect 19 1 11 0;
#N canvas 309 84 721 627 10;
#X obj 65 285 pix_grey;
#X obj 65 328 pix_fiducialtrack all.trees;
#X text 65 376 affichage video;
#X floatatom 144 264 5 0 0 2 tiles - -;
#X floatatom 224 284 5 0 0 2 contrast - -;
#X msg 144 284 \$1 \$1;
#X text 235 318 liste avec N arguments;
#X obj 65 307 pix_threshold_bernsen 16 16;
#X text 236 330 4 nombres : ID \, x \, y \, angle;
#X obj 65 228 inlet video;
#X obj 65 361 outlet;
#X obj 224 349 s \$0-positions;
#X obj 250 431 r \$0-positions;
#X obj 67 456 ../core/_track-fiducial 0 1 0 0;
#X obj 386 110 inlet commands;
#X obj 427 269 s \$0-debug-in;
#X obj 223 379 outlet positions;
#X obj 66 434 r \$0-debug;
#X obj 101 117 cnv 10 98 10 empty empty empty 20 12 1 9 -262110 -1
0;
#X obj 180 117 tgl 10 0 \$0-debug \$0-debug-in D 2 6 1 9 -262110 -1
-1 0 1;
#X obj 190 117 tgl 10 0 \$0-on \$0-on-in empty 3 6 1 9 -262110 -1 -1
0 1;
#X obj 422 156 f \$1;
#X obj 423 138 initbang;
#X obj 387 298 s \$0-on-in;
#X text 73 48 Track fiducials shapes;
#X msg 435 222 nb \$1;
#X obj 388 244 route on debug nb;
#X obj 423 181 sel 0;
#X msg 424 202 3;
#X obj 518 350 until;
#X obj 518 375 f;
#X msg 556 351 0;
#X obj 548 376 + 1;
#X obj 518 324 t f b;
#X obj 514 515 s \$0-debug;
#X obj 600 348 until;
#X obj 600 373 f;
#X msg 638 349 0;
#X obj 630 374 + 1;
#X obj 600 412 pack f 0;
#X obj 518 414 pack f 1;
#X msg 599 324 6;
#X obj 599 298 t b b;
#X obj 521 291 t f b;
#X obj 67 480 ../core/_track-fiducial 1 0 1 0;
#X obj 67 505 ../core/_track-fiducial 2 0 0 1;
#X obj 67 529 ../core/_track-fiducial 3 1 0 1;
#X obj 67 554 ../core/_track-fiducial 4 0 1 1;
#X obj 67 578 ../core/_track-fiducial 5 1 1 0;
#X connect 0 0 7 0;
#X connect 1 0 10 0;
#X connect 1 1 11 0;
#X connect 1 1 16 0;
#X connect 3 0 5 0;
#X connect 4 0 7 2;
#X connect 5 0 7 1;
#X connect 7 0 1 0;
#X connect 9 0 0 0;
#X connect 12 0 13 1;
#X connect 12 0 44 1;
#X connect 12 0 45 1;
#X connect 12 0 46 1;
#X connect 12 0 47 1;
#X connect 12 0 48 1;
#X connect 14 0 26 0;
#X connect 17 0 13 0;
#X connect 17 0 44 0;
#X connect 17 0 45 0;
#X connect 17 0 46 0;
#X connect 17 0 47 0;
#X connect 17 0 48 0;
#X connect 21 0 27 0;
#X connect 22 0 21 0;
#X connect 26 0 23 0;
#X connect 26 1 15 0;
#X connect 27 0 28 0;
#X connect 27 1 25 0;
#X connect 28 0 25 0;
#X connect 29 0 30 0;
#X connect 30 0 32 0;
#X connect 30 0 40 0;
#X connect 31 0 30 1;
#X connect 32 0 30 1;
#X connect 33 0 29 0;
#X connect 33 1 31 0;
#X connect 35 0 36 0;
#X connect 36 0 38 0;
#X connect 36 0 39 0;
#X connect 37 0 36 1;
#X connect 38 0 36 1;
#X connect 41 0 35 0;
#X connect 42 0 41 0;
#X connect 42 1 37 0;
#X connect 43 0 33 0;
#X connect 43 1 42 0;
#X coords 0 -1 1 1 100 30 1 100 100;
#N canvas 1 82 712 486 10;
#X msg 466 109 create \, 1;
#X obj 466 163 gemwin;
#X msg 476 134 0 \, destroy;
#X text 542 109 <- on;
#X text 546 135 <- off;
#X obj 466 51 t b b;
#X msg 493 79 reset \, dimen 640 480;
#X obj 237 229 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
#N canvas 172 108 628 501 10;
#X msg 453 129 create \, 1;
#X obj 453 183 gemwin;
#X msg 463 154 0 \, destroy;
#X text 529 129 <- on;
#X text 533 155 <- off;
#X obj 453 71 t b b;
#X msg 480 99 reset \, dimen 640 480;
#X obj 224 249 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 237 251 cursor \$1;
#X floatatom 236 277 5 0 1 0 - - -;
#X floatatom 236 321 5 0 1 0 - - -;
#X msg 236 341 blur \$1;
#X text 311 251 << cursor on/off (default = on) 1-0;
#X text 300 339 << blur (0-1) to adjust the precision;
#X obj 466 29 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
#X msg 224 271 cursor \$1;
#X floatatom 223 297 5 0 1 0 - - -;
#X floatatom 223 341 5 0 1 0 - - -;
#X msg 223 361 blur \$1;
#X text 298 271 << cursor on/off (default = on) 1-0;
#X text 287 359 << blur (0-1) to adjust the precision;
#X obj 453 49 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 154 196 debug 1;
#X msg 238 296 threshold \$1;
#X text 327 295 << threshold (0-1) to adjust the precision;
#X text 54 435 // adapted from benjamin cadon. labomedia.org;
#X obj 154 175 loadbang;
#X obj 236 184 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
#X msg 141 216 debug 1;
#X msg 225 316 threshold \$1;
#X text 314 315 << threshold (0-1) to adjust the precision;
#X text 41 455 // adapted from benjamin cadon. labomedia.org;
#X obj 141 195 loadbang;
#X obj 223 204 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 236 204 debug \$1;
#X obj 61 274 track-motion;
#X obj 61 223 video-camera;
#X text 52 5 track-motion \; ----------- \; Track motion of pixels
#X msg 223 224 debug \$1;
#X obj 48 294 track-motion;
#X obj 48 243 video-camera;
#X text 39 25 track-motion \; ----------- \; Track motion of pixels
(blob) \; A blob is an aera of pixels \; \; Outlets \; 1: X (0-1 float)
\; 2: Y (0-1 float) \; 3: movement (0 = no movement ... more = movement)
;
#X obj 63 330 vsl 15 50 0 1 0 0 empty empty X 5 30 0 10 -262144 -1
#X obj 48 350 vsl 15 50 0 1 0 0 empty empty X 5 30 0 10 -262144 -1
-128992 0 1;
#X obj 109 330 vsl 15 50 0 1 0 0 empty empty Y 5 30 0 10 -262144 -1
#X obj 94 350 vsl 15 50 0 1 0 0 empty empty Y 5 30 0 10 -262144 -1
-128992 0 1;
#X floatatom 63 387 5 0 0 0 - - -;
#X floatatom 109 387 5 0 0 0 - - -;
#X obj 155 330 vsl 15 50 0 30 0 0 empty empty empty 0 -9 0 10 -260097
#X floatatom 48 407 5 0 0 0 - - -;
#X floatatom 94 407 5 0 0 0 - - -;
#X obj 141 350 vsl 15 50 0 30 0 0 empty empty empty 0 -9 0 10 -260097
-1 -1 0 1;
#X floatatom 156 387 5 0 0 0 - - -;
#X floatatom 142 407 5 0 0 0 - - -;
#X connect 0 0 1 0;
#X connect 2 0 1 0;
#X connect 5 0 0 0;
......
#N canvas 1 165 955 483 10;
#N canvas 1 164 955 483 10;
#X obj 271 300 * 4;
#X obj 363 290 * 3;
#X obj 413 97 inlet;
......@@ -11,7 +11,7 @@
#X obj 363 251 t b f;
#X obj 285 271 t b f;
#X obj 92 228 inlet;
#X text 80 211 gemList;
#X text 87 206 gemList;
#X text 415 75 scale;
#X text 512 81 ratio (list);
#X obj 92 290 pix_texture;
......@@ -19,14 +19,14 @@
#X obj 101 116 cnv 10 98 21 empty empty empty 3 6 1 9 -262110 -1 0
;
#X obj 133 127 nbx 3 10 1 99 0 0 \$0-ratio-x \$0-ratio-x-in ratio 0
-5 1 9 -262110 -1 -1 4 256;
-5 1 9 -262110 -1 -1 16 256;
#X obj 170 127 nbx 3 10 1 99 0 0 \$0-ratio-y \$0-ratio-y-in empty 0
-5 1 9 -262110 -1 -1 3 256;
-5 1 9 -262110 -1 -1 9 256;
#X obj 285 243 r \$0-ratio-x;
#X obj 363 226 r \$0-ratio-y;
#X obj 271 189 r \$0-scale;
#X obj 100 127 nbx 2 10 0 99 0 0 \$0-scale \$0-scale-in scale 2 -5
1 9 -262110 -1 -1 1 256;
1 9 -262110 -1 -1 0.24 256;
#X obj 413 165 s \$0-scale-in;
#X obj 528 301 s \$0-ratio-x-in;
#X text 161 122 /;
......@@ -46,8 +46,9 @@
#X msg 715 149 3;
#X obj 676 174 pack f f;
#X floatatom 406 385 5 0 0 0 - - -;
#X floatatom 275 354 5 0 0 0 - - -;
#X floatatom 335 382 5 0 0 0 - - -;
#X obj 92 397 rectangle 5.333 4;
#X msg 559 120 16 9;
#X connect 0 0 6 0;
#X connect 1 0 7 0;
#X connect 2 0 24 0;
......@@ -91,4 +92,5 @@
#X connect 40 0 41 1;
#X connect 41 0 8 0;
#X connect 44 0 16 0;
#X connect 45 0 8 0;
#X coords 0 -1 1 1 100 40 1 100 100;
......@@ -38,6 +38,7 @@
<li class="bloc"><div class="grid_block"><h2>video</h2><ul>
<li><strong>track-areas</strong> : Track changes of luminosity in areas </li>
<li><strong>track-color</strong> : Track a color area </li>
<li><strong>track-fiducials</strong> : Track fiducials shapes </li>
<li><strong>track-motion</strong> : Track motion of pixels (blob) </li>
<li><strong>video-camera</strong> : Get video from a camera </li>
<li><strong>video-color</strong> : Set color balance </li>
......@@ -138,7 +139,7 @@
<li><strong>rand-bangs</strong> : Send a random number of delayed bangs</li>
<li><strong>rand-del</strong> : Random delay into a range time </li>
<li><strong>rand</strong> : Output a random value </li>
<li><strong>rand-n</strong> : Random N unique numbers into a range of numbers </li>
<li><strong>rand-n</strong> : Random N numbers into a range of numbers </li>
<li><strong>rand-range</strong> : Random a min and a max value inside a range </li>
<li><strong>rand-sel</strong> : Send a bang after a random number of bang </li>
<li><strong>rand-walk</strong> : Random walk generator </li>
......
No preview for this file type
#N canvas 149 77 800 687 10;
#N canvas 151 22 800 687 10;
#X declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/brutbox
......
#N canvas 143 77 800 687 10;
#N canvas 151 22 800 687 10;
#X declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/brutbox
......
#N canvas 137 77 800 687 10;
#N canvas 151 22 800 687 10;
#X declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/brutbox
......
#N canvas 145 77 800 687 10;
#N canvas 151 22 800 687 10;
#X declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/brutbox
......
......@@ -11,6 +11,7 @@ midi-out
osc-out
track-areas
track-color
track-fiducials
track-motion
video-camera
video-color
......
......@@ -22,6 +22,7 @@ osc-out
{
track-areas
track-color
track-fiducials
track-motion
video-camera
video-color
......
......@@ -4,7 +4,7 @@
see "abstractions/core/lang/" folder.
language: en
# Level: 0 (beginner) / 1 (expert)
level: 0
level: 1
# Project folder in "projects/". Don't forget to add a "new.pd" file.
project: default
# Video screen size in pixels
......
#N canvas 152 77 800 687 10;
#N canvas 151 22 800 687 10;
#X declare -path ../../abstractions/in -path ../../abstractions/out
-path ../../abstractions/numbers -path ../../abstractions/video -path
../../abstractions/audio -path ../../abstractions/core -path ../../abstractions/brutbox
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment