#N canvas 96 16 752 609 10; #X obj 142 61 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 -1; #X msg 34 125 loop \$1; #X obj 35 103 tgl 15 0 empty empty empty 20 8 0 8 -262144 -1 -1 1 1 ; #X msg 27 56 open \$1; #X obj 26 32 openpanel; #X obj 11 15 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 -1; #X floatatom 168 83 5 0 0 0 - - -; #X msg 99 62 stop; #X obj 175 52 hsl 300 15 0 1000 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X obj 131 132 metro 70; #X obj 126 164 pdp_yqt; #X obj 245 134 pdp_v4l; #X obj 254 104 metro 70; #X obj 299 70 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 -1; #X msg 256 71 stop; #X msg 341 102 open /dev/video; #X obj 567 476 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 567 528 pdp_control; #X msg 567 501 thread \$1; #X floatatom 567 589 5 0 0 0 - - -; #X obj 567 560 route pdp_drop; #X text 75 574 written by Yves Degoyon ( ydegoyon@free.fr ); #X obj 117 477 pdp_glx; #X msg 298 274 rgb \$1 \$2 \$3; #X obj 397 274 pack f f f; #X floatatom 579 273 5 0 0 0 - - -; #X text 590 292 R; #X floatatom 628 274 5 0 0 0 - - -; #X floatatom 672 274 5 0 0 0 - - -; #X text 683 291 B; #X obj 528 274 t b f; #X text 634 292 G; #X obj 480 274 t b f; #X obj 118 527 route press drag release; #X msg 262 172 pick \$1 \$2; #X text 353 171 Pick the color of the shape; #X msg 272 195 detect \$1 \$2; #X text 370 195 Detect a shape of that color; #X msg 282 219 tolerance \$1; #X floatatom 379 221 5 0 0 0 - - -; #X text 76 558 pdp_shape : shape recognition object; #X text 423 221 Set tolerance ( default = 20 ); #X text 300 294 Set the color of the shape; #X msg 292 246 paint \$1; #X obj 362 247 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X text 387 246 Paint option ( default = off ); #X floatatom 315 459 5 0 0 0 - - -; #X floatatom 276 477 5 0 0 0 - - -; #X floatatom 365 459 5 0 0 0 - - -; #X floatatom 277 498 5 0 0 0 - - -; #X text 321 438 X1; #X text 369 438 X2; #X text 249 476 Y1; #X text 249 499 Y2; #X text 322 486 Coordinates of detected shape; #X obj 416 312 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X msg 314 312 luminosity \$1; #X text 444 311 Use luminosity ( default = on ); #X obj 117 421 pdp_shape; #X msg 35 461 cursor 1; #X obj 405 354 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X msg 326 352 shape \$1; #X text 433 354 Draw shape option ( default = on ); #X obj 506 329 loadbang; #X msg 471 330 1; #X msg 333 381 isolate \$1; #X obj 421 382 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X text 442 382 Only show detected shape ( default = off ); #X connect 0 0 9 0; #X connect 1 0 10 0; #X connect 2 0 1 0; #X connect 3 0 10 0; #X connect 4 0 3 0; #X connect 5 0 4 0; #X connect 6 0 9 1; #X connect 7 0 9 0; #X connect 8 0 6 0; #X connect 9 0 10 0; #X connect 10 0 58 0; #X connect 11 0 58 0; #X connect 12 0 11 0; #X connect 13 0 12 0; #X connect 14 0 12 0; #X connect 15 0 11 0; #X connect 16 0 18 0; #X connect 17 0 20 0; #X connect 18 0 17 0; #X connect 20 0 19 0; #X connect 22 0 33 0; #X connect 23 0 58 0; #X connect 24 0 23 0; #X connect 25 0 24 0; #X connect 27 0 32 0; #X connect 28 0 30 0; #X connect 30 0 24 0; #X connect 30 1 24 2; #X connect 32 0 24 0; #X connect 32 1 24 1; #X connect 33 0 34 0; #X connect 33 2 36 0; #X connect 34 0 58 0; #X connect 36 0 58 0; #X connect 38 0 58 0; #X connect 39 0 38 0; #X connect 43 0 58 0; #X connect 44 0 43 0; #X connect 55 0 56 0; #X connect 56 0 58 0; #X connect 58 0 22 0; #X connect 58 1 46 0; #X connect 58 2 47 0; #X connect 58 3 48 0; #X connect 58 4 49 0; #X connect 59 0 22 0; #X connect 60 0 61 0; #X connect 61 0 58 0; #X connect 63 0 64 0; #X connect 64 0 55 0; #X connect 64 0 60 0; #X connect 65 0 58 0; #X connect 66 0 65 0;