<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
IOhannes m zmoelnig wrote:
<blockquote cite="mid4527E0BC.5060906@iem.at" type="cite">
  <pre wrap="">David Powers wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi everyone,

I bought a cheap Logitech webcam to try motion detection with PD+Gem.
I'm considering, among others things, using this as part of a digital
instrument design.

First of all, the cheap webcam is of course rather noisy. But, the
motion detection doing:

[pix_movement 0.3]
l
[alpha]
l
[pix_blob]

definitely does seem to work okay.

I did a test using the X and Y to control FM synthesis however, and it
mostly worked but tended to produce a lot of noise when something was
moving. What is the recommended way to smooth out the signal a bit?

Also, best way to find the average speed of motion?

Finally, are there more advanced motion detection strategies? Like,
say, could I somehow put a bright red dot on my index finger, and just
detect where my index finger is? I'd love to hear what people have
done.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
so you want to do color tracking?
simplest thing is to just use the specified color-channel for [pix_blob]
(e.g. [pix_blob 1] should just track the Red channel of an RGB signal
(check the help-patch)).
this only works in trivial cases (red, green, blue, white); for a more
general approach convert the image's colorspace into hsv (with
[pix_rgb2hsv] and mask out all colours you don't want on the
colour-circle (e.g with [pix_curve]) and then track this.

once you only have the pixel of the desired colour, you can of couse
also do motion tracking on the color-filtered image.

i thought i had some example of colortracking added to the gem-examples
(but i might be wrong).


mfg,.asd
IOhannes

_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>


  </pre>
</blockquote>
do you know pdp_shape ?<br>
<br>
ciOa,<br>
<br>
sevy<br>
</body>
</html>