From 7403eca640c47e995f079ece8dac6496c6cd2496 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Fri, 6 Aug 2010 21:08:18 +0000 Subject: improved contours numbering svn path=/trunk/externals/pdp_opencv/; revision=13761 --- pdp_opencv_contours_boundingrect-help.pd | 188 ++++++++++++++++--------------- 1 file changed, 100 insertions(+), 88 deletions(-) (limited to 'pdp_opencv_contours_boundingrect-help.pd') diff --git a/pdp_opencv_contours_boundingrect-help.pd b/pdp_opencv_contours_boundingrect-help.pd index cf06aec..57e7ecd 100644 --- a/pdp_opencv_contours_boundingrect-help.pd +++ b/pdp_opencv_contours_boundingrect-help.pd @@ -1,4 +1,4 @@ -#N canvas 683 49 737 767 10; +#N canvas 699 74 737 767 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; @@ -7,12 +7,6 @@ #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; @@ -22,22 +16,22 @@ #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 floatatom 187 535 5 0 0 0 - - -; +#X floatatom 222 535 5 0 0 0 - - -; +#X floatatom 259 535 5 0 0 0 - - -; +#X floatatom 293 535 5 0 0 0 - - -; +#X obj 187 508 unpack 0 0 0 0 0; +#X obj 187 481 route 0 1 2 3 4; +#X floatatom 245 378 5 0 0 0 - - -; +#X floatatom 298 391 5 0 0 0 - - -; +#X obj 99 431 pdp_opencv_contours_boundingrect; +#X text 180 560 Xorigin Yorigin Width Height; +#X floatatom 361 553 5 0 0 0 - - -; +#X floatatom 396 553 5 0 0 0 - - -; +#X floatatom 433 553 5 0 0 0 - - -; +#X floatatom 467 553 5 0 0 0 - - -; +#X obj 358 528 unpack 0 0 0 0 0; +#X text 340 573 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; @@ -58,22 +52,16 @@ 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 +#X floatatom 297 451 5 0 0 0 - - -; +#X text 336 452 Number of detected contours; +#X text 290 486 For each contour detected; +#X text 290 473 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 281 375 minimal area in pixels to be detected (default 10x10) ; -#X text 329 358 maximal area in pixels to be detected (default 320x240) +#X text 335 392 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 @@ -88,7 +76,6 @@ silouets of the objects you want to track.; #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; @@ -104,57 +91,82 @@ silouets of the objects you want to track.; #X text 330 321 draw the detected contours ( default : off ); #X text 324 281 hide original image ( default : off ); #X text 44 -99 comments to lluisgomez@hanger.org; -#X connect 1 0 69 0; +#X msg 257 346 clear; +#X text 296 347 clear all markers; +#X obj 91 116 pdp_scale 320 240; +#X text 292 241 maximum move of a countour ( default 50 ); +#X msg 463 53 bang; +#X obj 282 115 pdp_qt; +#X obj 315 51 metro 40; +#X msg 315 23 bang; +#X msg 356 23 stop; +#X obj 282 -25 openpanel; +#X msg 282 0 open \$1; +#X msg 316 78 loop \$1; +#X obj 396 78 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X obj 385 51 loadbang; +#X text 337 -1 playing a video file; +#X obj 342 116 hsl 128 15 0 500 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X obj 284 -48 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#X connect 1 0 57 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 3 0 57 0; +#X connect 4 0 57 0; +#X connect 5 0 57 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; +#X connect 7 0 10 0; +#X connect 8 0 10 0; +#X connect 9 0 10 0; +#X connect 10 0 70 0; +#X connect 17 0 13 0; +#X connect 17 1 14 0; +#X connect 17 2 15 0; +#X connect 17 3 16 0; +#X connect 18 0 17 0; +#X connect 18 1 27 0; +#X connect 19 0 21 1; +#X connect 20 0 21 2; +#X connect 21 0 29 0; +#X connect 21 1 18 0; +#X connect 21 2 38 0; +#X connect 27 0 23 0; +#X connect 27 1 24 0; +#X connect 27 2 25 0; +#X connect 27 3 26 0; +#X connect 31 0 51 2; +#X connect 33 0 10 0; +#X connect 34 0 33 0; +#X connect 45 0 21 0; +#X connect 46 0 45 0; +#X connect 48 0 50 0; +#X connect 50 0 21 0; +#X connect 51 0 21 0; +#X connect 52 0 21 0; +#X connect 53 0 52 0; +#X connect 54 0 55 0; +#X connect 55 0 21 0; +#X connect 57 0 70 0; +#X connect 58 0 21 0; +#X connect 59 0 58 0; +#X connect 60 0 62 0; +#X connect 61 0 64 0; +#X connect 62 0 21 0; +#X connect 64 0 21 0; +#X connect 68 0 21 0; +#X connect 70 0 51 0; +#X connect 72 0 10 0; +#X connect 73 0 70 0; +#X connect 74 0 73 0; +#X connect 75 0 74 0; +#X connect 76 0 74 0; +#X connect 77 0 78 0; +#X connect 78 0 73 0; +#X connect 79 0 73 0; +#X connect 80 0 79 0; +#X connect 81 0 80 0; +#X connect 81 0 75 0; +#X connect 83 0 73 1; +#X connect 84 0 77 0; -- cgit v1.2.1