outputtig positions of pixels with indexed values

7pc's picture

Hi there. I was about to dump QC for anything other that doesn't bother me that much. Last try: Your Knowledge.

I'm trying to wirte a controlling unit that outputs x and y for a blob (or glob). The goal is a nontactile control for a simple videoplaying engine through a camera.

So, if I iterate to find the white pixels in a difference-picture from my motion detection I will not have an output of any values (Iterator doesn't seem to do that.)

OpenCV patch doesn't seem to work on my Macbook Pro Intel 2.3.

Any chance somebody can tell me a way of detecting the uppest and lowest, and the rightest and leftest of the white pixels I get from my motion detection? Just to generate the smoothed middle value of those coordinates to output as a controller to VDMX or any other.

Thanks for thinking about it. p

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

franz's picture
Re: outputtig positions of pixels with indexed values

hi, the current release of KnM Open CV for QC doesn't support blob tracking. I would suggest using another app to blob track, then connect to QC via tuio protocol. Depending on you tracking conditions, you should check applications (mostly free) such as:

  • Touché
  • Trackmate
  • Tbeta
  • BBtouch
  • MaxMasp (via cv.lib)
  • Wiimote whiteboard

and i forgot a lot of others. Eventually, if a dual computer setup (with a window$ machine) is an option, your best bet would be to use EyeCon .

If you still wanna stick to QC, check out Memo's webcam piano, it has all necessary stuff to get you started - but is based on a motion grid, not blobs. Still, you can do a lot of stuff with that amazing patch (thanks Memo for sharing btw !)

hope this helps

monobrau's picture
Re: outputtig positions of pixels with indexed values

Check this guy's plug in:

http://www.magdatt.nl/software.html

It generates an structure of either R, G, B, A or an average of all pixels. It seems to run reasonable when transforming the input image to 40x30 pixels.

toneburst's picture
Re: outputtig positions of pixels with indexed values

That looks cool. Thanks for the link, monobrau!

a|x

7pc's picture
Re: outputtig positions of pixels with indexed values

Wow, thanks for the link. This should do for the project.

And thanks for the help, all!