blob: eb232ae2f36afe7a25f5bd226960474cb8ecad95 (
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
|
#N canvas 435 113 1154 642 10;
#X obj 384 31 gemhead;
#X obj 365 414 pix_texture;
#X obj 365 442 square 2;
#X obj 9 -28 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 5 49 454 304 gemwin 0;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 39 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#X msg 156 142 dimen 256 128;
#X obj 127 212 gemwin;
#X msg 120 172 create \, 1;
#X msg 208 175 destroy;
#X msg 248 132 frame 15;
#X obj 129 122 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 5 0 6 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 1 5 0;
#X connect 10 2 9 0;
#X restore 14 16 pd gemwin;
#X msg 14 -8 destroy;
#X text 15 -25 Create window and render;
#X obj 200 368 pix_texture;
#X obj 200 396 square 2;
#X obj 367 159 translateXYZ -2 0 0;
#X obj 367 193 separator;
#X obj 343 221 cnv 15 700 180 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 356 -55 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 356 -26 openpanel;
#X msg 356 -6 open \$1;
#X obj 364 259 translateXYZ 4 0 0;
#X text 9 -82 based on basic OCR with Open CV tutorial;
#X text 9 -71 by damiles : http://blog.damiles.com/?p=93;
#X text 9 -58 adapted to PD by Yves Degoyon ( ydegoyon@gmail.com )
;
#X text 9 -93 pix_opencv_knear : OCR-like pattern recognition;
#X msg 532 250 bang;
#X text 628 251 Compare the incoming frame to the patterns;
#X text 667 281 Load a new set of patterns from a directory;
#X text 668 293 All patterns should be of the same size;
#X msg 550 283 load ../plus 50;
#X floatatom 591 355 10 0 0 0 - - -;
#X text 663 356 Distance of the incoming frame compared to the patterns
;
#X obj 384 72 pix_image;
#X obj 365 335 pix_opencv_knear /usr/local/pd/pdp_opencv/doc/plus 50
;
#X obj 592 380 print distance;
#X obj 572 251 loadbang;
#X obj 382 110 pix_grey;
#X text 433 -33 load patterns \, create the Gem window and then load
a character image;
#X msg 560 310 load /usr/local/pd/pdp_opencv/plus 50;
#X connect 0 0 27 0;
#X connect 1 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 4 0;
#X connect 7 0 8 0;
#X connect 9 0 7 0;
#X connect 9 0 10 0;
#X connect 10 0 15 0;
#X connect 12 0 13 0;
#X connect 12 0 20 0;
#X connect 13 0 14 0;
#X connect 14 0 27 0;
#X connect 15 0 28 0;
#X connect 20 0 28 0;
#X connect 24 0 28 0;
#X connect 27 0 31 0;
#X connect 28 0 1 0;
#X connect 28 1 25 0;
#X connect 28 1 29 0;
#X connect 30 0 20 0;
#X connect 31 0 9 0;
#X connect 33 0 28 0;
|