blob: a947bd31aa4732988bf67eccbfbbb79cc625b06c (
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
|
#N canvas 0 25 1680 940 10;
#X obj 582 308 cnv 15 500 180 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 671 313 hradio 15 1 0 5 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X text 754 312 save an histogram at position nth ( 0 <= n <= 80 )
;
#X floatatom 675 444 5 0 0 0 - - -;
#X obj 737 369 unpack f f f f f;
#X text 830 404 nearest to 1 is the winner;
#X text 711 445 closest histogram (winner);
#X obj 737 397 vsl 15 37 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 760 397 vsl 15 37 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 783 397 vsl 15 37 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 806 397 vsl 15 37 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X text 829 393 matching measure with stored histograms;
#X obj 596 338 pix_opencv_hist_compare;
#X obj 715 -105 gemhead;
#X obj 596 536 pix_texture;
#X obj 596 555 square 2;
#X obj 33 -109 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 65 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 162 241 gemwin;
#X msg 161 188 create \, 1;
#X msg 237 189 destroy;
#X msg 283 161 frame 5;
#X obj 164 126 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 43 -65 pd gemwin;
#X msg 43 -83 create;
#X obj 444 532 pix_texture;
#X obj 444 560 square 2;
#X obj 596 222 separator;
#X obj 727 -78 bng 25 250 50 0 load empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 784 97 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 766 62 5 0 10000 1 frame# - -;
#X obj 727 -49 openpanel;
#X msg 727 -29 open \$1;
#X obj 715 80 pix_film;
#X msg 733 14 auto \$1;
#X obj 733 -4 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X text 41 -103 Create window and render;
#X msg 828 -3 colorspace RGBA;
#X msg 933 -3 colorspace RGB;
#X msg 1037 -3 colorspace Grey;
#X obj 828 -31 loadbang;
#X obj 595 193 pix_separator;
#X obj 444 225 separator;
#X obj 444 196 pix_separator;
#X obj 444 260 translateXYZ -2 0 0;
#X obj 596 257 translateXYZ 2 0 0;
#N canvas 0 0 450 300 vswitch 0;
#X obj 144 263 outlet;
#X obj 36 26 inlet;
#X obj 260 29 inlet;
#X obj 36 133 spigot;
#X obj 260 141 spigot;
#X obj 119 64 loadbang;
#X msg 83 93 0;
#X msg 113 93 1;
#X msg 296 104 0;
#X msg 326 104 1;
#X obj 399 34 inlet;
#X obj 399 67 select 0;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 7 0;
#X connect 5 0 8 0;
#X connect 6 0 3 1;
#X connect 7 0 3 1;
#X connect 8 0 4 1;
#X connect 9 0 4 1;
#X connect 10 0 11 0;
#X connect 11 0 7 0;
#X connect 11 0 8 0;
#X connect 11 1 9 0;
#X connect 11 1 6 0;
#X restore 537 150 pd vswitch;
#X obj 605 150 tgl 15 0 empty load empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 478 78 pix_video;
#X obj 478 -110 gemhead;
#X msg 517 3 device 0;
#X msg 526 34 driver 1;
#X msg 503 -51 dialog;
#X msg 508 -21 device /dev/dv1394-0;
#X text 32 -20 record histograms of specific situations;
#X text 34 -8 the object will recognize the situations if they occur
again;
#X text 34 6 Written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org
);
#X text 34 -33 pix_opencv_hist_compare : image recognition using histograms
;
#X connect 1 0 12 1;
#X connect 4 0 7 0;
#X connect 4 1 8 0;
#X connect 4 2 9 0;
#X connect 4 3 10 0;
#X connect 12 0 14 0;
#X connect 12 1 3 0;
#X connect 12 2 4 0;
#X connect 13 0 27 0;
#X connect 14 0 15 0;
#X connect 17 0 18 0;
#X connect 18 0 17 0;
#X connect 19 0 20 0;
#X connect 21 0 39 0;
#X connect 22 0 25 0;
#X connect 23 0 24 0;
#X connect 24 0 27 1;
#X connect 25 0 26 0;
#X connect 26 0 27 0;
#X connect 27 0 40 1;
#X connect 27 2 23 0;
#X connect 28 0 27 0;
#X connect 29 0 28 0;
#X connect 31 0 27 0;
#X connect 31 0 42 0;
#X connect 32 0 27 0;
#X connect 33 0 27 0;
#X connect 34 0 31 0;
#X connect 34 0 29 0;
#X connect 35 0 21 0;
#X connect 36 0 38 0;
#X connect 37 0 36 0;
#X connect 38 0 19 0;
#X connect 39 0 12 0;
#X connect 40 0 35 0;
#X connect 40 0 37 0;
#X connect 41 0 40 2;
#X connect 42 0 40 0;
#X connect 43 0 42 0;
#X connect 44 0 42 0;
#X connect 45 0 42 0;
#X connect 46 0 42 0;
#X connect 47 0 42 0;
|