diff options
Diffstat (limited to 'pdp_opencv_motempl-help.pd')
-rw-r--r-- | pdp_opencv_motempl-help.pd | 268 |
1 files changed, 132 insertions, 136 deletions
diff --git a/pdp_opencv_motempl-help.pd b/pdp_opencv_motempl-help.pd index a0af63d..6344607 100644 --- a/pdp_opencv_motempl-help.pd +++ b/pdp_opencv_motempl-help.pd @@ -1,140 +1,136 @@ -#N canvas 20 121 1247 665 10; -#X floatatom 485 286 5 0 0 0 - - -; -#X floatatom 583 247 5 0 0 0 - - -; -#X text 525 288 Threshold value. (default 30); -#X obj 492 373 route -1 0 1 2 3 4; -#X floatatom 495 453 5 0 0 0 - - -; -#X floatatom 530 453 5 0 0 0 - - -; -#X floatatom 567 453 5 0 0 0 - - -; -#X floatatom 601 453 5 0 0 0 - - -; -#X floatatom 524 502 5 0 0 0 - - -; -#X floatatom 559 502 5 0 0 0 - - -; -#X floatatom 596 502 5 0 0 0 - - -; -#X floatatom 630 502 5 0 0 0 - - -; -#X floatatom 568 558 5 0 0 0 - - -; -#X floatatom 603 558 5 0 0 0 - - -; -#X floatatom 640 558 5 0 0 0 - - -; -#X floatatom 674 558 5 0 0 0 - - -; -#X obj 492 424 unpack 0 0 0 0 0; -#X obj 521 473 unpack 0 0 0 0 0; -#X obj 565 529 unpack 0 0 0 0 0; -#X floatatom 638 452 5 0 0 0 - - -; -#X floatatom 668 502 5 0 0 0 - - -; -#X floatatom 712 558 5 0 0 0 - - -; -#X text 552 391 For each motion component component; -#X text 614 424 (-1) means the whole image; -#X text 689 450 Xcenter Ycenter Width Height Angle; -#X text 710 501 Xcenter Ycenter Width Height Angle; -#X text 757 557 Xcenter Ycenter Width Height Angle; -#X obj 360 329 pdp_opencv_motempl; -#X obj 364 374 pdp_xv; -#X msg 479 244 mhi_duration \$1; -#X obj 59 391 pdp_qt; -#X obj 56 41 metro 40; -#X msg 56 13 bang; -#X msg 97 13 stop; -#X msg 15 13 bang; -#X obj 140 41 openpanel; -#X msg 140 66 open \$1; -#X msg 140 13 bang; -#X msg 140 92 close; -#X floatatom 140 120 5 0 0 0 - - -; -#X floatatom 140 146 5 0 0 0 - - -; -#X msg 140 197 loop \$1; -#X obj 203 182 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 -1; -#X msg 142 341 dump array 0; -#X msg 142 291 stop; -#X msg 141 222 autoplay 1; -#X msg 142 267 play; -#X msg 142 315 cont; -#X floatatom 548 126 5 0 0 0 - - -; -#X msg 430 123 max_time_delta \$1; -#X floatatom 562 151 5 0 0 0 - - -; -#X msg 445 149 min_time_delta \$1; -#X floatatom 591 216 5 0 0 0 - - -; -#X msg 463 214 frame_buffer_num \$1; -#X floatatom 512 304 5 0 0 0 - - -; -#X floatatom 523 323 5 0 0 0 - - -; -#X text 563 325 Max size of the motion component (default 500); -#X text 553 304 Min size of the motion component (default 50); -#X text 586 125 Max time delta in seconds. (default 0.5); -#X text 600 151 Min time delta in seconds. (default 0.05); -#X obj 231 72 pdp_v4l2; -#X obj 231 45 metro 40; -#X msg 231 20 bang; -#X obj 303 43 metro 40; -#X msg 303 18 bang; -#X obj 303 70 pdp_v4l; -#X text 51 557 written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org +#N canvas 1 49 1424 780 10; +#X text 22 30 written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org ); -#X text 52 533 pdp_opencv_motempl : opencv motion detection based on -history; -#X text 632 216 Number of frames in the history buffer. (default 4) +#X text 23 6 pdp_opencv_motempl : opencv motion detection based on +movement history; +#X obj 11 63 cnv 15 621 250 empty empty empty 20 12 0 14 -260097 -66577 +0; +#X obj 251 103 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X obj 251 130 metro 40; +#X msg 341 157 close; +#X obj 271 228 pdp_v4l; +#X msg 328 125 open /dev/video0; +#X obj 440 98 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 +1; +#X obj 440 125 metro 40; +#X msg 521 144 close; +#X msg 517 120 open /dev/video0; +#X obj 461 224 pdp_v4l2; +#X msg 526 199 format \$1; +#X obj 527 177 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 +-1 -1 0; +#X obj 41 278 pdp_qt; +#X obj 74 214 metro 40; +#X msg 74 186 bang; +#X msg 115 186 stop; +#X obj 41 117 openpanel; +#X msg 41 142 open \$1; +#X msg 41 89 bang; +#X msg 75 241 loop \$1; +#X obj 155 241 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X obj 155 159 loadbang; +#X text 84 92 playing a video file; +#X text 281 101 Camera input; +#X obj 101 279 hsl 128 15 0 500 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X obj 12 324 cnv 15 621 250 empty empty empty 20 12 0 14 -258113 -66577 +0; +#X floatatom 191 500 5 0 0 0 - - -; +#X floatatom 242 459 5 0 0 0 - - -; +#X text 231 502 Threshold value. (default 30); +#X obj 198 587 route -1 0 1 2 3 4; +#X floatatom 201 658 5 0 0 0 - - -; +#X floatatom 236 658 5 0 0 0 - - -; +#X floatatom 273 658 5 0 0 0 - - -; +#X floatatom 307 658 5 0 0 0 - - -; +#X floatatom 412 657 5 0 0 0 - - -; +#X floatatom 447 657 5 0 0 0 - - -; +#X floatatom 484 657 5 0 0 0 - - -; +#X floatatom 518 657 5 0 0 0 - - -; +#X obj 198 629 unpack 0 0 0 0 0; +#X obj 409 628 unpack 0 0 0 0 0; +#X floatatom 344 657 5 0 0 0 - - -; +#X floatatom 556 657 5 0 0 0 - - -; +#X text 198 610 (-1) means the whole image; +#X text 194 675 Xcenter Ycenter Width Height Angle; +#X text 409 673 Xcenter Ycenter Width Height Angle; +#X obj 62 555 pdp_opencv_motempl; +#X obj 62 672 pdp_xv; +#X msg 138 456 mhi_duration \$1; +#X floatatom 207 338 5 0 0 0 - - -; +#X msg 89 335 max_time_delta \$1; +#X floatatom 221 363 5 0 0 0 - - -; +#X msg 104 361 min_time_delta \$1; +#X floatatom 250 428 5 0 0 0 - - -; +#X msg 122 426 frame_buffer_num \$1; +#X floatatom 218 518 5 0 0 0 - - -; +#X floatatom 229 537 5 0 0 0 - - -; +#X text 269 539 Max size of the motion component (default 500); +#X text 259 518 Min size of the motion component (default 50); +#X text 245 337 Max time delta in seconds. (default 0.5); +#X text 259 363 Min time delta in seconds. (default 0.05); +#X text 291 428 Number of frames in the history buffer. (default 4) ; -#X text 625 248 Maximal duration of motion track in seconds. (default +#X text 284 460 Maximal duration of motion track in seconds. (default 1.0); -#X msg 456 180 aperture \$1; -#X text 653 177 aperture ( 3 \, 5 or 7 \, default 3 ); -#X msg 536 180 3; -#X msg 569 180 5; -#X msg 600 180 7; -#X connect 0 0 27 1; -#X connect 1 0 29 0; -#X connect 3 0 16 0; -#X connect 3 1 17 0; -#X connect 3 2 18 0; -#X connect 16 0 4 0; -#X connect 16 1 5 0; -#X connect 16 2 6 0; -#X connect 16 3 7 0; -#X connect 16 4 19 0; -#X connect 17 0 8 0; -#X connect 17 1 9 0; -#X connect 17 2 10 0; -#X connect 17 3 11 0; -#X connect 17 4 20 0; -#X connect 18 0 12 0; -#X connect 18 1 13 0; -#X connect 18 2 14 0; -#X connect 18 3 15 0; -#X connect 18 4 21 0; -#X connect 27 0 28 0; -#X connect 27 1 3 0; -#X connect 29 0 27 0; -#X connect 30 0 27 0; -#X connect 31 0 30 0; -#X connect 32 0 31 0; -#X connect 33 0 31 0; -#X connect 34 0 30 0; -#X connect 35 0 36 0; -#X connect 36 0 30 0; -#X connect 37 0 35 0; -#X connect 38 0 30 0; -#X connect 39 0 30 0; -#X connect 40 0 30 1; -#X connect 41 0 30 0; -#X connect 42 0 41 0; -#X connect 43 0 30 0; -#X connect 44 0 30 0; -#X connect 45 0 30 0; -#X connect 46 0 30 0; -#X connect 47 0 30 0; +#X msg 115 392 aperture \$1; +#X text 291 393 aperture ( 3 \, 5 or 7 \, default 3 ); +#X msg 195 392 3; +#X msg 228 392 5; +#X msg 259 392 7; +#X text 406 610 For each motion component; +#X connect 3 0 4 0; +#X connect 4 0 6 0; +#X connect 5 0 6 0; +#X connect 6 0 48 0; +#X connect 7 0 6 0; +#X connect 8 0 9 0; +#X connect 9 0 12 0; +#X connect 10 0 12 0; +#X connect 11 0 12 0; +#X connect 12 0 48 0; +#X connect 13 0 12 0; +#X connect 14 0 13 0; +#X connect 15 0 48 0; +#X connect 16 0 15 0; +#X connect 17 0 16 0; +#X connect 18 0 16 0; +#X connect 19 0 20 0; +#X connect 20 0 15 0; +#X connect 21 0 19 0; +#X connect 22 0 15 0; +#X connect 23 0 22 0; +#X connect 24 0 23 0; +#X connect 24 0 17 0; +#X connect 27 0 15 1; +#X connect 29 0 48 1; +#X connect 30 0 50 0; +#X connect 32 0 41 0; +#X connect 32 1 42 0; +#X connect 41 0 33 0; +#X connect 41 1 34 0; +#X connect 41 2 35 0; +#X connect 41 3 36 0; +#X connect 41 4 43 0; +#X connect 42 0 37 0; +#X connect 42 1 38 0; +#X connect 42 2 39 0; +#X connect 42 3 40 0; +#X connect 42 4 44 0; #X connect 48 0 49 0; -#X connect 49 0 27 0; -#X connect 50 0 51 0; -#X connect 51 0 27 0; -#X connect 52 0 53 0; -#X connect 53 0 27 0; -#X connect 54 0 27 2; -#X connect 55 0 27 3; -#X connect 60 0 27 0; -#X connect 61 0 60 0; -#X connect 62 0 61 0; -#X connect 63 0 65 0; -#X connect 64 0 63 0; -#X connect 65 0 27 0; -#X connect 70 0 27 0; -#X connect 72 0 70 0; -#X connect 73 0 70 0; -#X connect 74 0 70 0; +#X connect 48 1 32 0; +#X connect 50 0 48 0; +#X connect 51 0 52 0; +#X connect 52 0 48 0; +#X connect 53 0 54 0; +#X connect 54 0 48 0; +#X connect 55 0 56 0; +#X connect 56 0 48 0; +#X connect 57 0 48 2; +#X connect 58 0 48 3; +#X connect 65 0 48 0; +#X connect 67 0 65 0; +#X connect 68 0 65 0; +#X connect 69 0 65 0; |