aboutsummaryrefslogtreecommitdiff
path: root/pdp_opencv_contours_convexity-help.pd
blob: 8866098fb0e68aa5338dd556074c1d1a6dfb5e9e (plain)
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
#N canvas 6 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 -274 211 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 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;