From 6d1e462140a725b5962c9ba59593517ec8eec444 Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Sat, 18 May 2013 10:17:21 +0000 Subject: update help patches : warpperspective : add invert message blobtrack : add setParam and getParam message svn path=/trunk/externals/pix_opencv/; revision=17137 --- pix_opencv_blobtrack-help.pd | 115 +++++++++++++++++++++++++++---------------- 1 file changed, 73 insertions(+), 42 deletions(-) (limited to 'pix_opencv_blobtrack-help.pd') diff --git a/pix_opencv_blobtrack-help.pd b/pix_opencv_blobtrack-help.pd index 24ceefe..e26fd2a 100644 --- a/pix_opencv_blobtrack-help.pd +++ b/pix_opencv_blobtrack-help.pd @@ -1,4 +1,4 @@ -#N canvas 1006 403 818 513 10; +#N canvas 994 439 818 513 10; #X obj 7 200 cnv 15 430 300 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 7 156 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577 @@ -15,7 +15,7 @@ This is made by a foreground detector \, a blob detector \, a blob tracker and a trajectory post processor.; #X text 30 173 none; -#X obj 450 216 cnv 15 250 120 empty empty empty 20 12 0 14 -4034 -66577 +#X obj 446 222 cnv 15 250 120 empty empty empty 20 12 0 14 -4034 -66577 0; #X obj 656 363 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 0; @@ -48,11 +48,8 @@ tracker and a trajectory post processor.; #X text 657 362 Create window:; #X obj 454 364 pix_texture; #X obj 454 30 gemhead; -#X msg 520 45 auto 1; -#X obj 520 18 loadbang; -#X obj 606 295 print dumpout; -#X floatatom 501 293 5 0 0 0 - - -; -#N canvas 1072 385 709 722 showblob 0; +#X floatatom 531 323 5 0 0 0 blob_num - -; +#N canvas 1068 357 709 722 showblob 0; #X obj 187 13 inlet blobinformation; #X obj 279 316 gemlist; #X obj 279 296 t b a; @@ -89,7 +86,7 @@ tracker and a trajectory post processor.; #X obj 279 596 translateXYZ 0.2 0.2 0; #X text 336 194 here is an example on how to display blobs with Gem ; -#X obj 279 446 scaleXYZ 10.666 8 0; +#X obj 279 446 scaleXYZ 10.666 -8 0; #X connect 0 0 6 1; #X connect 1 0 20 0; #X connect 2 0 1 0; @@ -135,15 +132,14 @@ tracker and a trajectory post processor.; #X connect 32 0 19 1; #X connect 33 0 23 0; #X connect 35 0 12 0; -#X restore 553 315 pd showblob; -#X obj 454 395 rectangle 5.333 4; +#X restore 568 320 pd showblob; #X obj 454 124 pix_resize 320 240; #X obj 454 255 pix_opencv_blobtrack; #X obj 454 173 pix_rgba; #X obj 471 227 r \$0-properties; #X text 464 153 input format : rgba or grey; -#N canvas 695 197 544 482 properties 0; -#X msg 290 314 monitorStage \$1; +#N canvas 681 239 713 583 properties 0; +#X msg 99 407 monitorStage \$1; #X msg 4 21 getModule; #X msg 4 41 getModule fg; #X msg 4 61 getModule bd; @@ -153,21 +149,28 @@ tracker and a trajectory post processor.; #X msg 260 194 setModule bd BD_CC; #X msg 27 194 setModule fg FG_0S; #X msg 147 194 setModule fg FG_1; -#X text 289 249 monitoring stage :; -#X obj 290 266 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -262144 --1 -1 0; -#X text 308 265 input image; -#X text 307 281 foreground mask; -#X text 307 296 diplsay blobs; -#X obj -35 433 s \$0-properties; +#X text 98 342 monitoring stage :; +#X obj 99 359 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -262144 -1 +-1 0; +#X text 117 358 input image; +#X text 116 374 foreground mask; +#X text 116 389 diplsay blobs; +#X obj -35 513 s \$0-properties; #X obj -35 353 t a; -#X msg 287 380 fgTrainFrames \$1; -#X floatatom 287 353 5 0 0 0 - - -; +#X msg -14 405 fgTrainFrames \$1; +#X floatatom -14 378 5 0 0 0 - - -; #X text 72 20 post all accessibles modules and their nickname; #X text 108 56 post information of specific module and get the avaiblable variant to load; #X msg 12 160 setModule fg FG_1 \, setModule bd BD_Simple \, setModule bt CC \, setModule btpp none \, setModule bta none; +#X msg 201 249 getParam fg; +#X floatatom 201 277 5 0 0 0 - - -; +#X msg 201 295 setParam fg NG \$1; +#X text 279 242 getParam : returns all parameters for +a given module; +#X text 319 295 setParam : set a +module parameter \, value could be float or symbol; #X connect 0 0 15 0; #X connect 1 0 16 0; #X connect 2 0 16 0; @@ -183,7 +186,10 @@ bt CC \, setModule btpp none \, setModule bta none; #X connect 17 0 15 0; #X connect 18 0 17 0; #X connect 21 0 16 0; -#X restore 610 222 pd properties; +#X connect 22 0 16 0; +#X connect 23 0 24 0; +#X connect 24 0 16 0; +#X restore 595 230 pd properties; #X obj 454 70 pix_film; #X text 459 96 the bigger the image is \, the more CPU expensive the algo will be; @@ -194,10 +200,9 @@ usefull ones \, see [pd properties] for details.; #X text 26 272 monitoringStage : set the location where output image is taken (input \, foreground mask or input with tracking information) ; -#X obj 580 51 openpanel; -#X obj 583 24 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +#X obj 550 50 openpanel; +#X obj 550 32 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; -#X msg 580 72 open \$1; #X text 15 321 Outlet 1 : gemstate; #X text 15 341 Outlet 2 :; #X text 35 360 blobnum : number of blobs in the current frame; @@ -207,22 +212,48 @@ is taken (input \, foreground mask or input with tracking information) and algorithms... check out the pd-properties; #X text 65 399 and for each blob : ID \, x \, y \, width \, height \, state (valid or not); -#X obj 501 274 route blobnum cvblob; +#X msg 550 70 open \$1 \, auto 1; +#X obj 454 395 rectangle 5.333 4; +#X msg 509 70 0; +#X msg 531 302 \$1; +#X obj 531 281 route cvblob; +#N canvas 1 92 593 300 info 0; +#X obj 153 40 inlet; +#X obj 153 62 route modulelist param; +#X msg 55 148 fg bd bt btpp bta; +#X obj 55 106 list prepend set; +#X obj 55 128 list trim; +#X msg 78 211 getModule; +#X obj 78 236 s \$0-properties; +#X text -59 148 available module :; +#X msg 146 212 getParam fg; +#X obj 217 108 print param; +#X obj 298 96 print dumpout; +#X connect 0 0 1 0; +#X connect 1 0 3 0; +#X connect 1 1 9 0; +#X connect 1 2 10 0; +#X connect 3 0 4 0; +#X connect 4 0 2 0; +#X connect 5 0 6 0; +#X connect 8 0 6 0; +#X restore 645 322 pd info; #X connect 12 0 13 0; #X connect 13 0 12 0; -#X connect 15 0 22 0; -#X connect 16 0 29 0; -#X connect 17 0 29 0; -#X connect 18 0 17 0; -#X connect 23 0 25 0; -#X connect 24 0 15 0; -#X connect 24 1 45 0; -#X connect 25 0 24 0; -#X connect 26 0 24 0; -#X connect 29 0 23 0; -#X connect 35 0 37 0; -#X connect 36 0 35 0; -#X connect 37 0 29 0; -#X connect 45 0 20 0; -#X connect 45 1 21 0; -#X connect 45 2 19 0; +#X connect 15 0 41 0; +#X connect 16 0 25 0; +#X connect 19 0 21 0; +#X connect 20 0 15 0; +#X connect 20 1 44 0; +#X connect 21 0 20 0; +#X connect 22 0 20 0; +#X connect 25 0 19 0; +#X connect 25 2 42 0; +#X connect 31 0 40 0; +#X connect 32 0 31 0; +#X connect 40 0 25 0; +#X connect 42 0 25 1; +#X connect 43 0 17 0; +#X connect 44 0 43 0; +#X connect 44 0 18 0; +#X connect 44 1 45 0; -- cgit v1.2.1