#N canvas 11 49 714 937 10;
#X obj -514 173 cnv 15 621 223 empty empty empty 20 12 0 14 -260097
-66577 0;
#X msg -407 230 open /dev/dv1394/0;
#X obj -484 205 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1
0 1;
#X obj -482 230 metro 40;
#X msg -364 296 norm PAL;
#X msg -394 259 close;
#X obj -273 210 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1
0 1;
#X obj -274 238 metro 40;
#X msg -184 265 close;
#X obj -254 336 pdp_v4l;
#X msg -197 233 open /dev/video0;
#X obj -73 213 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj -73 240 metro 40;
#X msg 8 259 close;
#X msg 4 235 open /dev/video0;
#X obj -53 338 pdp_v4l2;
#X obj -512 409 cnv 15 621 73 empty empty empty 20 12 0 14 -260801
-66577 0;
#X obj -464 444 pdp_convert bitmap/rgb/*;
#X text -300 438 COLORMODEL CONVERSION :: allways remember pdp_opencv
only works in RGB colormodel;
#X obj -508 592 cnv 15 621 313 empty empty empty 20 12 0 14 -258113
-66577 0;
#X text -484 176 FIRST OF ALL SETUP YOUR CAMERA;
#X obj -511 499 cnv 15 621 73 empty empty empty 20 12 0 14 -260801
-66577 0;
#X msg -313 525 set;
#X floatatom -313 549 5 0 0 0 - - -;
#X obj -464 549 pdp_opencv_bgsubstract;
#X text -275 548 threshold (default 13) to use when comparing pixel
colors;
#X text -278 524 set the background reference;
#X msg 13 314 format \$1;
#X obj 14 292 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X text -513 43 This object considers a contour to be analyzed any
group of white pixels in a black background \, for this reason you
will find useful to use pdp_bgsubstract or pdp_threshold to obtain
a correct input for pdp_opencv_contours_boundingrect.;
#X floatatom -329 791 5 0 0 0 - - -;
#X floatatom -294 791 5 0 0 0 - - -;
#X floatatom -264 772 5 0 0 0 - - -;
#X floatatom -230 772 5 0 0 0 - - -;
#X obj -292 689 route 0 1 2 3 4;
#X obj -464 624 pdp_opencv_contours_convexity;
#X obj -295 727 unpack 0 0 0 0 0 0;
#X floatatom -200 753 5 0 0 0 - - -;
#X floatatom -166 753 5 0 0 0 - - -;
#X text -182 690 For each convexity defect in our contour;
#X text -256 792 Start point (X -Y);
#X text -192 772 Depth point (X -Y);
#X text -127 754 End point (X -Y);
#X floatatom -285 880 5 0 0 0 - - -;
#X floatatom -250 880 5 0 0 0 - - -;
#X floatatom -220 861 5 0 0 0 - - -;
#X floatatom -186 861 5 0 0 0 - - -;
#X obj -251 816 unpack 0 0 0 0 0 0;
#X floatatom -156 842 5 0 0 0 - - -;
#X floatatom -122 842 5 0 0 0 - - -;
#X text -212 881 Start point (X -Y);
#X text -148 861 Depth point (X -Y);
#X text -83 843 End point (X -Y);
#X floatatom -224 976 5 0 0 0 - - -;
#X floatatom -189 976 5 0 0 0 - - -;
#X floatatom -159 957 5 0 0 0 - - -;
#X floatatom -125 957 5 0 0 0 - - -;
#X obj -190 912 unpack 0 0 0 0 0 0;
#X floatatom -95 938 5 0 0 0 - - -;
#X floatatom -61 938 5 0 0 0 - - -;
#X text -151 977 Start point (X -Y);
#X text -87 957 Depth point (X -Y);
#X text -22 939 End point (X -Y);
#X floatatom -152 1050 5 0 0 0 - - -;
#X floatatom -117 1050 5 0 0 0 - - -;
#X floatatom -87 1031 5 0 0 0 - - -;
#X floatatom -53 1031 5 0 0 0 - - -;
#X obj -118 986 unpack 0 0 0 0 0 0;
#X floatatom -23 1012 5 0 0 0 - - -;
#X floatatom 11 1012 5 0 0 0 - - -;
#X text -79 1051 Start point (X -Y);
#X text -15 1031 Depth point (X -Y);
#X text 50 1013 End point (X -Y);
#X floatatom -378 654 5 0 0 0 - - -;
#X obj -465 925 pdp_xv;
#X text -342 658 number convexity defects in our detected contour;
#X text -512 7 pdp_opencv_contours_convexity :: Finds convexity defects
of the bigest contour of a binary image.;
#X text -512 104 pdp_opencv_contours_boundingrect works detecting the
bigest white area in the input image \, sometimes you will need to
use pdp_opencv_morphology to transform the contours of the shape to
be analyzed..;
#X obj -464 330 pdp_ieee1394;
#X text -515 152 comments to lluisgomez@hangar.org;
#X connect 1 0 78 0;
#X connect 2 0 3 0;
#X connect 3 0 78 0;
#X connect 4 0 78 0;
#X connect 5 0 78 0;
#X connect 6 0 7 0;
#X connect 7 0 9 0;
#X connect 8 0 9 0;
#X connect 9 0 17 0;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 12 0 15 0;
#X connect 13 0 15 0;
#X connect 14 0 15 0;
#X connect 15 0 17 0;
#X connect 17 0 24 0;
#X connect 22 0 24 0;
#X connect 23 0 24 1;
#X connect 24 0 35 0;
#X connect 27 0 15 0;
#X connect 28 0 27 0;
#X connect 34 0 36 0;
#X connect 34 1 47 0;
#X connect 34 2 57 0;
#X connect 34 3 67 0;
#X connect 35 0 74 0;
#X connect 35 1 73 0;
#X connect 35 2 34 0;
#X connect 36 0 30 0;
#X connect 36 1 31 0;
#X connect 36 2 32 0;
#X connect 36 3 33 0;
#X connect 36 4 37 0;
#X connect 36 5 38 0;
#X connect 47 0 43 0;
#X connect 47 1 44 0;
#X connect 47 2 45 0;
#X connect 47 3 46 0;
#X connect 47 4 48 0;
#X connect 47 5 49 0;
#X connect 57 0 53 0;
#X connect 57 1 54 0;
#X connect 57 2 55 0;
#X connect 57 3 56 0;
#X connect 57 4 58 0;
#X connect 57 5 59 0;
#X connect 67 0 63 0;
#X connect 67 1 64 0;
#X connect 67 2 65 0;
#X connect 67 3 66 0;
#X connect 67 4 68 0;
#X connect 67 5 69 0;
#X connect 78 0 17 0;