#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 ); #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 625 248 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 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;