blob: cba6fb69f896d813adca3a9432bc1ddfe376fc00 (
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
#N canvas 495 86 1154 642 10;
#X obj 838 6 gemhead;
#X obj 372 500 pix_texture;
#X obj 372 528 square 2;
#X obj 9 -28 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 454 304 gemwin 0;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#N canvas 87 154 247 179 Gem.init 0;
#X obj 118 46 loadbang;
#X msg 118 81 reset;
#X obj 118 113 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 289 80 pd Gem.init;
#X obj 160 260 gemwin;
#X msg 159 207 create \, 1;
#X msg 235 208 destroy;
#X msg 281 180 frame 5;
#X obj 162 170 t b b b;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 10 0;
#X connect 2 1 4 0;
#X connect 2 1 8 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X connect 9 0 6 0;
#X connect 10 0 7 0;
#X connect 10 2 9 0;
#X restore 14 16 pd gemwin;
#X msg 14 -5 create;
#X text 15 -23 Create window and render;
#X obj 363 232 cnv 15 700 250 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 485 -90 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 542 85 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 524 50 5 0 10000 1 frame# - -;
#X obj 485 -61 openpanel;
#X msg 485 -41 open \$1;
#X obj 473 68 pix_film;
#X msg 491 2 auto \$1;
#X obj 491 -16 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 373 395 pix_opencv_hu_compare;
#X floatatom 506 439 30 0 0 0 - - -;
#X text 511 422 distance;
#X obj 722 457 route 1;
#X obj 774 457 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 683 458 < 0.1;
#X obj 783 437 hsl 128 15 0 0.2 0 0 cdist empty empty -2 -8 0 10 -262144
-1 -1 6900 1;
#X text 696 420 criteria value;
#X floatatom 701 439 10 0 0 0 - - -;
#X text 528 376 calculating their hu moments ( CvMatchShape );
#X text 527 364 compares the contours to the pattern reference contour
;
#X msg 511 333 criteria \$1;
#X obj 595 334 r cdist;
#X text 648 328 criteria value under which the contour is recongnized
;
#X text 646 339 ( adjust to your situation : default : 0.1 );
#X obj 575 283 hradio 15 1 0 3 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X text 626 277 method used for comparison : one of : CV_CONTOURS_MATCH_I1
\, CV_CONTOURS_MATCH_I2 or CV_CONTOURS_MATCH_I3;
#X obj 547 282 + 1;
#X msg 477 282 method \$1;
#X msg 463 255 minsize \$1;
#X floatatom 537 256 5 0 0 0 - - -;
#X text 578 256 minimum size of selected contours ( default : 10x10
);
#X msg 513 304 clear;
#X text 621 304 recalculates the pattern contour;
#X obj 562 305 r reset;
#X text 12 -57 Written by Yves Degoyon ( ydegoyon@gmail.com );
#X text 13 -85 pix_opencv_hu_compare :: compare contours using their
hu moments using CvMatchShape.;
#X text 532 -88 playing a video file;
#X text 550 -75 ( try estrella.mov );
#X msg 755 -67 bang;
#X text 801 -74 loading a pattern image;
#X text 800 -61 ( try estrella.jpg );
#X text 754 -92 Compare to a pattern;
#X obj 755 9 pix_image;
#X obj 757 -40 openpanel;
#X msg 756 -13 open \$1;
#X floatatom 908 126 5 0 0 0 - - -;
#X text 946 125 threshold (default 13) to use when comparing pixel
colors;
#X obj 976 99 loadbang;
#X msg 945 99 160;
#X obj 877 98 r tresh;
#X floatatom 606 154 5 0 0 0 - - -;
#X obj 674 152 loadbang;
#X msg 646 152 160;
#X obj 607 172 s tresh;
#X obj 886 158 pix_texture;
#X obj 754 125 pix_opencv_threshold;
#X obj 473 173 pix_opencv_threshold;
#X obj 886 186 square 2;
#X obj 754 71 translateXYZ -2 0 0;
#X obj 755 39 pix_resize 320 240;
#X obj 473 101 pix_resize 320 240;
#X obj 549 -24 loadbang;
#X msg 549 1 colorspace RGBA;
#X msg 650 0 colorspace RGB;
#X msg 612 -25 colorspace Grey;
#X obj 417 -4 gemhead;
#X obj 477 142 translateXYZ 2 0 0;
#X connect 0 0 49 0;
#X connect 1 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 4 0;
#X connect 8 0 11 0;
#X connect 9 0 10 0;
#X connect 10 0 13 1;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 67 0;
#X connect 13 2 9 0;
#X connect 14 0 13 0;
#X connect 15 0 14 0;
#X connect 16 0 1 0;
#X connect 16 1 17 0;
#X connect 17 0 21 0;
#X connect 19 0 20 0;
#X connect 21 0 19 0;
#X connect 22 0 21 1;
#X connect 22 0 24 0;
#X connect 27 0 16 0;
#X connect 28 0 27 0;
#X connect 31 0 33 0;
#X connect 33 0 34 0;
#X connect 34 0 16 0;
#X connect 35 0 16 0;
#X connect 36 0 35 0;
#X connect 38 0 16 0;
#X connect 40 0 38 0;
#X connect 45 0 50 0;
#X connect 49 0 66 0;
#X connect 50 0 51 0;
#X connect 51 0 49 0;
#X connect 52 0 62 2;
#X connect 54 0 55 0;
#X connect 55 0 52 0;
#X connect 56 0 52 0;
#X connect 57 0 60 0;
#X connect 57 0 63 2;
#X connect 58 0 59 0;
#X connect 59 0 57 0;
#X connect 61 0 64 0;
#X connect 62 0 61 0;
#X connect 62 0 16 1;
#X connect 63 0 16 0;
#X connect 65 0 62 0;
#X connect 66 0 65 0;
#X connect 67 0 73 0;
#X connect 68 0 69 0;
#X connect 69 0 13 0;
#X connect 69 0 49 0;
#X connect 70 0 49 0;
#X connect 70 0 13 0;
#X connect 71 0 13 0;
#X connect 71 0 49 0;
#X connect 72 0 13 0;
#X connect 73 0 63 0;
|