aboutsummaryrefslogtreecommitdiff
path: root/pdp_opencv_contours_boundingrect-help.pd
blob: a209f2bc361c79d855b145074d17379aa92feb42 (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
151
152
153
154
155
156
157
158
159
#N canvas 1 49 1424 780 10;
#X obj 41 -82 cnv 15 621 223 empty empty empty 20 12 0 14 -260097 -66577
0;
#X msg 148 -25 open /dev/dv1394/0;
#X obj 71 -50 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 73 -25 metro 40;
#X msg 191 41 norm PAL;
#X msg 161 4 close;
#X obj 281 -44 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 281 -17 metro 40;
#X msg 371 10 close;
#X obj 301 81 pdp_v4l;
#X msg 358 -22 open /dev/video0;
#X obj 482 -42 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 482 -15 metro 40;
#X msg 563 4 close;
#X msg 559 -20 open /dev/video0;
#X obj 504 81 pdp_v4l2;
#X obj 40 194 cnv 15 621 400 empty empty empty 20 12 0 14 -258113 -66577
0;
#X text 71 -79 FIRST OF ALL SETUP YOUR CAMERA;
#X floatatom 194 474 5 0 0 0 - - -;
#X floatatom 229 474 5 0 0 0 - - -;
#X floatatom 266 474 5 0 0 0 - - -;
#X floatatom 300 474 5 0 0 0 - - -;
#X obj 194 447 unpack 0 0 0 0 0;
#X obj 194 420 route 0 1 2 3 4;
#X floatatom 239 344 5 0 0 0 - - -;
#X floatatom 292 357 5 0 0 0 - - -;
#X obj 91 374 pdp_opencv_contours_boundingrect;
#X text 344 474 Xorigin Yorigin Width Height;
#X floatatom 214 524 5 0 0 0 - - -;
#X floatatom 249 524 5 0 0 0 - - -;
#X floatatom 286 524 5 0 0 0 - - -;
#X floatatom 320 524 5 0 0 0 - - -;
#X obj 211 499 unpack 0 0 0 0 0;
#X text 364 524 Xorigin Yorigin Width Height;
#X obj 91 601 pdp_xv;
#X obj 41 148 cnv 15 621 40 empty empty empty 20 12 0 14 -260801 -66577
0;
#X floatatom 239 156 5 0 0 0 - - -;
#X text 277 155 threshold (default 13) to use when comparing pixel
colors;
#X msg 568 59 format \$1;
#X obj 569 37 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X text 43 -307 pdp_opencv_contours_boundingrect :: Calculates up-right
bounding rectangle of all contours of a binary image.;
#X text 42 -234 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 text 43 -173 pdp_opencv_contours_boundingrect works detecting any
white areas in the input image \, it's important to set max/min values
of the areas you want to detect to filter non interesting noise or
areas \, also sometimes you will need to use pdp_opencv_morphology
to transform the contours of the shapes to be analyzed..;
#X floatatom 289 394 5 0 0 0 - - -;
#X text 328 395 Number of detected contours;
#X floatatom 241 572 5 0 0 0 - - -;
#X floatatom 276 572 5 0 0 0 - - -;
#X floatatom 313 572 5 0 0 0 - - -;
#X floatatom 347 572 5 0 0 0 - - -;
#X obj 240 549 unpack 0 0 0 0 0;
#X text 391 572 Xorigin Yorigin Width Height;
#X text 297 425 For each contour detected;
#X text 297 412 We have the contours sorted bottom to top and left
to right;
#X text 42 -273 It is useful as a motion tracker if you have well isolated
silouets of the objects you want to track.;
#X text 275 341 minimal area in pixels to be detected (default 10x10)
;
#X text 329 358 maximal area in pixels to be detected (default 320x240)
;
#X msg 123 196 mode \$1;
#X obj 184 197 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X text 253 198 retrieval mode ( see cvFindContours );
#X obj 215 221 hradio 15 1 0 5 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X text 297 221 retrieval method ( see cvFindContours );
#X msg 148 220 method \$1;
#X obj 91 155 pdp_opencv_threshold;
#X msg 175 241 maxmove \$1;
#X floatatom 249 242 5 0 0 0 - - -;
#X floatatom 283 262 5 0 0 0 - - -;
#X msg 194 260 ftolerance \$1;
#X text 292 241 maximum move of a countour ( default 10 );
#X text 318 261 frame tolerance for identification ( default 5 );
#X obj 92 75 pdp_ieee1394;
#X msg 211 280 nightmode \$1;
#X obj 301 281 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 290 302 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 303 324 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 230 301 draw \$1;
#X text 317 300 draw bounding rectangle ( default : on );
#X msg 245 322 show \$1;
#X text 330 321 draw the detected contours ( default : off );
#X text 324 281 hide original image ( default : off );
#X connect 1 0 69 0;
#X connect 2 0 3 0;
#X connect 3 0 69 0;
#X connect 4 0 69 0;
#X connect 5 0 69 0;
#X connect 6 0 7 0;
#X connect 7 0 9 0;
#X connect 8 0 9 0;
#X connect 9 0 62 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 62 0;
#X connect 22 0 18 0;
#X connect 22 1 19 0;
#X connect 22 2 20 0;
#X connect 22 3 21 0;
#X connect 23 0 22 0;
#X connect 23 1 32 0;
#X connect 23 2 49 0;
#X connect 24 0 26 1;
#X connect 25 0 26 2;
#X connect 26 0 34 0;
#X connect 26 1 23 0;
#X connect 26 2 43 0;
#X connect 32 0 28 0;
#X connect 32 1 29 0;
#X connect 32 2 30 0;
#X connect 32 3 31 0;
#X connect 36 0 62 2;
#X connect 38 0 15 0;
#X connect 39 0 38 0;
#X connect 49 0 45 0;
#X connect 49 1 46 0;
#X connect 49 2 47 0;
#X connect 49 3 48 0;
#X connect 56 0 26 0;
#X connect 57 0 56 0;
#X connect 59 0 61 0;
#X connect 61 0 26 0;
#X connect 62 0 26 0;
#X connect 63 0 26 0;
#X connect 64 0 63 0;
#X connect 65 0 66 0;
#X connect 66 0 26 0;
#X connect 69 0 62 0;
#X connect 70 0 26 0;
#X connect 71 0 70 0;
#X connect 72 0 74 0;
#X connect 73 0 76 0;
#X connect 74 0 26 0;
#X connect 76 0 26 0;