hi,

i try to do using two pix_video but only one capture.

i attached the patch.

any idea?

tkz

On Wed, Aug 25, 2010 at 12:19 PM, Jose Luis Santorcuato <
santorcuat...@gmail.com> wrote:

> Yes, we can, I have three cameras connect only limited by the usb ports, I
> sometimes use a single gemhead, under it add up how many objects you want,
> however I prefer to use for monitoring ctrack pidip , pdp libraries, those
> pd are not in order for windows.
>
> Best regards
>
> José
>
> 2010/8/25 IOhannes m zmoelnig <zmoel...@iem.at>
>
>> On 2010-08-24 21:51, Ricardo Brazileiro wrote:
>> > hi all,
>> >
>> > How can I use two webcam in Gem to tracking (pix_blob) ?
>>
>> use 2 [pix_video] objects.
>>
>> >
>> > Is it possible?
>>
>> yes.
>>
>> >
>> > I have two webcam, /dev/video0 and /dev/video1. I tested using pix_video
>> but
>> > I only change the device in the same window.
>>
>> the window has nothing to do with either the video grabbing nor the
>> video analysis.
>> you can grab video, run [pix_blob] on it and still only see a teapot :-)
>>
>> anyhow: pix_blob will only ever work on single pixes ("frames").
>> if you want to use 2 cameras (e.g. to enlargen the viewing angle), you
>> basically have 2 possibilities:
>> - merge the two video streams into one, by using whatever compositing
>> techniques you are easy with. a simple one would be to display both
>> pixes (probably in a not-displayed [gemframebuffer]), and use [pix_snap]
>> to grab the composited image). then run whatever analysis you want on
>> the new big pix.
>>
>> - do analysis on each stream and then merge the results
>>
>> gfmasdr
>> IOhannes
>>
>>
>> _______________________________________________
>> Pd-list@iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>>
>
>
> --
>
> http://arselectronicachile.blogspot.com
> http://www.myspace.com/santorcuato
>
>
>
> _______________________________________________
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>


-- 
ricardo brazileiro
http://rbrazileiro.info
#N canvas 0 25 1679 969 10;
#X obj 148 -18 gemhead;
#X obj 148 24 pix_video;
#N canvas 162 133 570 420 serin 0;
#X obj 205 60 cnv 20 20 20 empty \$0-open-canvas 0 4 10 0 16 -233017
-1 0;
#X obj 60 61 hradio 18 1 1 8 empty empty empty 0 -6 0 8 -225271 -1
-1 0;
#X obj 60 13 inlet;
#X msg 200 202 label \$1;
#X obj 200 180 makefilename %d;
#X obj 59 108 int;
#X obj 59 337 outlet;
#X msg 201 306 set \$1 \$2;
#X obj 59 266 trigger bang anything;
#X obj 201 286 list;
#X obj 200 225 send \$0-open-canvas;
#X msg 60 210 device \$1;
#X connect 1 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 10 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 5 0 11 0;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X connect 8 1 9 0;
#X connect 9 0 7 0;
#X connect 11 0 8 0;
#X coords 0 -1 1 1 165 20 1 60 60;
#X restore 221 -37 pd serin;
#X obj 148 147 pix_threshold;
#X obj 186 53 loadbang;
#X msg 185 73 50;
#X obj 185 120 / 100;
#X floatatom 185 97 5 0 0 0 - - -;
#X obj 148 268 pix_blob;
#X floatatom 163 297 5 0 0 0 - - -;
#X floatatom 211 312 5 0 0 0 - - -;
#X obj 148 350 pix_texture;
#X obj 148 388 rectangle 4 3;
#N canvas 340 107 682 322 gemwin 0;
#X obj 102 122 tgl 15 0 \$0-gemstart \$0-gemstart empty 17 7 0 10 -262144
-1 -1 0 1;
#X obj 102 161 r \$0-gemstart;
#X obj 102 182 select 1 0;
#X msg 102 214 create \, 1;
#X msg 177 215 destroy;
#X obj 102 239 t a;
#X obj 318 54 inlet;
#X obj 318 255 gemwin;
#X obj 318 100 t a a;
#X obj 318 287 outlet;
#X obj 350 128 route create destroy;
#X obj 350 150 t b;
#X msg 350 172 1;
#X obj 390 150 t b;
#X msg 390 172 0;
#X obj 350 195 t f;
#X msg 350 219 set \$1;
#X text 118 122 rendering;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 3 0 5 0;
#X connect 4 0 5 0;
#X connect 5 0 8 0;
#X connect 6 0 8 0;
#X connect 7 0 9 0;
#X connect 8 0 7 0;
#X connect 8 1 10 0;
#X connect 10 0 11 0;
#X connect 10 1 13 0;
#X connect 11 0 12 0;
#X connect 12 0 15 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 526 425 pd gemwin;
#X msg 526 381 create;
#X msg 576 382 1;
#X obj 576 403 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 148 210 pix_background;
#X floatatom 229 173 5 0 0 0 - - -;
#X obj 163 322 outlet;
#X obj 211 333 outlet;
#X msg 245 149 0.22;
#X obj 304 77 pack f f f;
#X floatatom 308 42 5 0 0 0 - - -;
#X floatatom 348 35 5 0 0 0 - - -;
#X msg 304 106 \$1 \$2 \$3;
#X floatatom 378 35 5 0 0 0 - - -;
#X msg 370 106 47 64 130;
#X msg 219 3 device 0;
#X obj 650 -11 gemhead;
#X obj 650 31 pix_video;
#X obj 650 154 pix_threshold;
#X obj 688 60 loadbang;
#X msg 687 80 50;
#X obj 687 127 / 100;
#X floatatom 687 104 5 0 0 0 - - -;
#X obj 650 275 pix_blob;
#X floatatom 665 304 5 0 0 0 - - -;
#X floatatom 713 319 5 0 0 0 - - -;
#X obj 650 357 pix_texture;
#X obj 650 395 rectangle 4 3;
#X obj 650 217 pix_background;
#X floatatom 731 180 5 0 0 0 - - -;
#X obj 665 329 outlet;
#X obj 713 340 outlet;
#X msg 747 156 0.22;
#X obj 806 84 pack f f f;
#X floatatom 810 49 5 0 0 0 - - -;
#X floatatom 850 42 5 0 0 0 - - -;
#X msg 806 113 \$1 \$2 \$3;
#X floatatom 880 42 5 0 0 0 - - -;
#X msg 872 113 47 64 130;
#X msg 721 10 device 1;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 2 0 28 0;
#X connect 3 0 17 0;
#X connect 4 0 21 0;
#X connect 5 0 7 0;
#X connect 6 0 3 1;
#X connect 7 0 6 0;
#X connect 8 0 11 0;
#X connect 8 1 9 0;
#X connect 8 2 10 0;
#X connect 9 0 19 0;
#X connect 10 0 20 0;
#X connect 11 0 12 0;
#X connect 14 0 13 0;
#X connect 15 0 16 0;
#X connect 16 0 13 0;
#X connect 17 0 8 0;
#X connect 18 0 17 1;
#X connect 21 0 18 0;
#X connect 22 0 25 0;
#X connect 23 0 22 0;
#X connect 24 0 22 1;
#X connect 25 0 3 2;
#X connect 26 0 22 2;
#X connect 27 0 3 2;
#X connect 28 0 1 0;
#X connect 29 0 30 0;
#X connect 30 0 31 0;
#X connect 31 0 41 0;
#X connect 32 0 45 0;
#X connect 33 0 35 0;
#X connect 34 0 31 1;
#X connect 35 0 34 0;
#X connect 36 0 39 0;
#X connect 36 1 37 0;
#X connect 36 2 38 0;
#X connect 37 0 43 0;
#X connect 38 0 44 0;
#X connect 39 0 40 0;
#X connect 41 0 36 0;
#X connect 42 0 41 1;
#X connect 45 0 42 0;
#X connect 46 0 49 0;
#X connect 47 0 46 0;
#X connect 48 0 46 1;
#X connect 49 0 31 2;
#X connect 50 0 46 2;
#X connect 51 0 31 2;
#X connect 52 0 30 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to