aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pix_opencv_contours_boundingrect-help.pd190
1 files changed, 107 insertions, 83 deletions
diff --git a/pix_opencv_contours_boundingrect-help.pd b/pix_opencv_contours_boundingrect-help.pd
index 231e605..40e094e 100644
--- a/pix_opencv_contours_boundingrect-help.pd
+++ b/pix_opencv_contours_boundingrect-help.pd
@@ -1,14 +1,13 @@
-#N canvas 277 66 1040 775 10;
+#N canvas 1855 69 1023 804 10;
#X obj 580 466 cnv 15 550 250 empty empty empty 20 12 0 14 -24198 -66577
0;
#X floatatom 717 652 5 0 0 0 - - -;
-#X obj 600 684 pix_opencv_contours_boundingrect;
#X floatatom 803 666 5 0 0 0 - - -;
-#X floatatom 733 816 5 0 0 0 - - -;
-#X floatatom 768 816 5 0 0 0 - - -;
-#X floatatom 805 816 5 0 0 0 - - -;
-#X floatatom 839 816 5 0 0 0 - - -;
-#X obj 730 787 unpack 0 0 0 0 0;
+#X floatatom 725 815 5 0 0 0 - - -;
+#X floatatom 760 815 5 0 0 0 - - -;
+#X floatatom 797 815 5 0 0 0 - - -;
+#X floatatom 831 815 5 0 0 0 - - -;
+#X obj 722 786 unpack 0 0 0 0 0;
#X obj 730 736 route 0 1 2 3 4;
#X text 790 754 For each contour detected;
#X text 29 172 It is useful as a motion tracker if you have well isolated
@@ -141,91 +140,116 @@ to transform the contours of the shapes to be analyzed..;
#X connect 11 1 9 0;
#X connect 11 1 6 0;
#X restore 536 267 pd vswitch;
-#X obj 604 267 tgl 15 0 empty load empty 17 7 0 10 -262144 -1 -1 0
+#X obj 604 267 tgl 15 0 empty load empty 17 7 0 10 -262144 -1 -1 1
1;
-#X obj 478 227 pix_video;
#X obj 478 39 gemhead;
#X msg 517 152 device 0;
#X msg 526 183 driver 1;
#X msg 503 98 dialog;
#X msg 508 128 device /dev/dv1394-0;
-#X floatatom 746 894 5 0 0 0 - - -;
-#X floatatom 781 894 5 0 0 0 - - -;
-#X floatatom 818 894 5 0 0 0 - - -;
-#X floatatom 852 894 5 0 0 0 - - -;
-#X obj 743 865 unpack 0 0 0 0 0;
-#X text 883 816 ( First contour ) Xorigin Yorigin Width Height;
-#X text 895 892 ( Second contour ) Xorigin Yorigin Width Height;
+#X text 875 815 ( First contour ) Xorigin Yorigin Width Height;
#X text 752 648 min area in pixels (default 10x10);
#X text 840 664 max area in pixels (default 320x240);
#X obj 536 296 pix_resize 320 240;
#X text 790 528 maximum move of a countour ( default 20 );
-#X obj 596 439 pix_opencv_threshold;
-#X floatatom 731 441 5 0 0 0 - - -;
-#X connect 1 0 2 1;
-#X connect 2 0 38 0;
-#X connect 2 1 9 0;
-#X connect 2 2 26 0;
-#X connect 3 0 2 2;
-#X connect 8 0 4 0;
-#X connect 8 1 5 0;
-#X connect 8 2 6 0;
-#X connect 8 3 7 0;
-#X connect 9 0 8 0;
-#X connect 9 1 76 0;
-#X connect 12 0 2 0;
-#X connect 13 0 12 0;
-#X connect 15 0 17 0;
-#X connect 17 0 2 0;
-#X connect 18 0 2 0;
-#X connect 19 0 18 0;
-#X connect 20 0 21 0;
-#X connect 21 0 2 0;
-#X connect 28 0 2 0;
-#X connect 29 0 28 0;
-#X connect 30 0 32 0;
-#X connect 31 0 34 0;
-#X connect 32 0 2 0;
-#X connect 34 0 2 0;
-#X connect 37 0 51 0;
-#X connect 38 0 39 0;
-#X connect 41 0 42 0;
-#X connect 42 0 41 0;
-#X connect 43 0 44 0;
-#X connect 45 0 63 0;
-#X connect 46 0 49 0;
-#X connect 47 0 48 0;
-#X connect 48 0 51 1;
+#X floatatom 762 432 5 0 0 0 - - -;
+#X obj 596 439 pix_opencv_bgsubstract;
+#X floatatom 802 872 5 0 0 0 - - -;
+#X msg 1138 511 300;
+#X msg 1164 624 1000;
+#X obj 1154 478 loadbang;
+#X obj 802 848 *;
+#X obj 794 904 s area;
+#X msg 766 399 set;
+#X text 800 401 reset background reference;
+#X obj 969 943 timeroll;
+#X obj 908 913 autoscale;
+#X msg 927 890 320;
+#X msg 963 891 0;
+#X obj 600 684 pix_opencv_contours_boundingrect;
+#X obj 478 227 pix_video;
+#X obj 1243 910 autoscale;
+#X msg 1262 887 320;
+#X msg 1298 888 0;
+#X obj 1242 943 timeroll;
+#X obj 1202 863 mean_n 25;
+#X connect 1 0 89 1;
+#X connect 2 0 89 2;
+#X connect 3 0 86 0;
+#X connect 3 0 95 0;
+#X connect 5 0 81 0;
+#X connect 6 0 81 1;
+#X connect 7 0 3 0;
+#X connect 7 1 4 0;
+#X connect 7 2 5 0;
+#X connect 7 3 6 0;
+#X connect 8 0 7 0;
+#X connect 11 0 89 0;
+#X connect 12 0 11 0;
+#X connect 14 0 16 0;
+#X connect 16 0 89 0;
+#X connect 17 0 89 0;
+#X connect 18 0 17 0;
+#X connect 19 0 20 0;
+#X connect 20 0 89 0;
+#X connect 27 0 89 0;
+#X connect 28 0 27 0;
+#X connect 29 0 31 0;
+#X connect 30 0 33 0;
+#X connect 31 0 89 0;
+#X connect 33 0 89 0;
+#X connect 36 0 50 0;
+#X connect 37 0 38 0;
+#X connect 40 0 41 0;
+#X connect 41 0 40 0;
+#X connect 42 0 43 0;
+#X connect 44 0 62 0;
+#X connect 45 0 48 0;
+#X connect 46 0 47 0;
+#X connect 47 0 50 1;
+#X connect 48 0 49 0;
#X connect 49 0 50 0;
-#X connect 50 0 51 0;
-#X connect 51 0 64 1;
-#X connect 51 2 47 0;
+#X connect 50 0 63 1;
+#X connect 50 2 46 0;
+#X connect 51 0 50 0;
#X connect 52 0 51 0;
-#X connect 53 0 52 0;
-#X connect 55 0 51 0;
-#X connect 55 0 66 0;
-#X connect 56 0 51 0;
-#X connect 57 0 51 0;
-#X connect 58 0 55 0;
-#X connect 58 0 53 0;
-#X connect 59 0 45 0;
-#X connect 60 0 62 0;
-#X connect 61 0 60 0;
-#X connect 62 0 43 0;
-#X connect 63 0 83 0;
-#X connect 64 0 81 0;
-#X connect 65 0 64 2;
-#X connect 66 0 64 0;
-#X connect 67 0 66 0;
-#X connect 68 0 66 0;
-#X connect 69 0 66 0;
-#X connect 70 0 66 0;
-#X connect 71 0 66 0;
-#X connect 76 0 72 0;
-#X connect 76 1 73 0;
-#X connect 76 2 74 0;
-#X connect 76 3 75 0;
-#X connect 81 0 59 0;
-#X connect 81 0 61 0;
-#X connect 83 0 2 0;
-#X connect 84 0 83 2;
+#X connect 54 0 50 0;
+#X connect 54 0 90 0;
+#X connect 55 0 50 0;
+#X connect 56 0 50 0;
+#X connect 57 0 54 0;
+#X connect 57 0 52 0;
+#X connect 58 0 44 0;
+#X connect 59 0 61 0;
+#X connect 60 0 59 0;
+#X connect 61 0 42 0;
+#X connect 62 0 76 0;
+#X connect 63 0 73 0;
+#X connect 64 0 63 2;
+#X connect 65 0 90 0;
+#X connect 66 0 90 0;
+#X connect 67 0 90 0;
+#X connect 68 0 90 0;
+#X connect 69 0 90 0;
+#X connect 73 0 58 0;
+#X connect 73 0 60 0;
+#X connect 75 0 76 1;
+#X connect 76 0 89 0;
+#X connect 77 0 82 0;
+#X connect 78 0 18 0;
+#X connect 79 0 1 0;
+#X connect 80 0 78 0;
+#X connect 80 0 79 0;
+#X connect 81 0 77 0;
+#X connect 83 0 76 0;
+#X connect 86 0 85 0;
+#X connect 87 0 86 0;
+#X connect 88 0 86 0;
+#X connect 89 0 37 0;
+#X connect 89 1 8 0;
+#X connect 89 2 25 0;
+#X connect 90 0 63 0;
+#X connect 91 0 94 0;
+#X connect 92 0 91 0;
+#X connect 93 0 91 0;
+#X connect 95 0 91 0;