[PD] two webcam in gem

IOhannes m zmoelnig zmoelnig at iem.at
Wed Aug 25 08:54:06 CEST 2010

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?


> 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100825/6d710d46/attachment.bin>

More information about the Pd-list mailing list