Colour blob tracking in jitter

May 9, 2009 at 11:25am

Colour blob tracking in jitter

Hi, I am getting really stuck looking at cv.jit.label and jit.fiundbounds and exploring the rest fo the cv.jit bundle.

I need to track a red dot on a live camera feed and track its exact position within the camera screen and then use that position to become the mouse state so that by moving the red dot I can congtrol the mouse cursor.

I look at cv.jit.track which obviously uses the grayscale imagine but i thought it might be able to track the actual dot but it looks the dot easily and I need it to track the dot accurately.

Does anyone have any idea what I need to do?

Sorry for just asking such an open ended question but I have looked into quite a few of the cv.jit objects and i am really stuck as to where to go!

Thank you very much in advance!

All the best

#43744
May 12, 2009 at 9:50am

If you manege to extract just the red dot, use cv.jit.centroids or cv.jit.blobs.centroids to get the center of the mass.
Hope thet i was of some help.

#157096
May 12, 2009 at 10:49am

Hi Cheers for this. I am stuck now because the red laser dot gets picked up if i shine it onto a black background but not when it shines onto a white background and I need it on a white background. Any idea of how to get around this?

Thanks alot!

#157097
May 12, 2009 at 12:25pm

Perhaps reversing the colors of the matrix so that your input is a green light on a black background would help.

Eli

#157098
May 13, 2009 at 2:41am

can you explain a bit more about the project, maybe it would be more aesthetically helpful to use black, but if you need white im sure theres a workaround.. Also dont forget about infra red, usually works on any color and you can pick it up without being seen by the naked eye!!

#157099
May 13, 2009 at 10:51am

I didnt think about that that’s a good diea, cheers!

How would i go about doing that?

Thankk!

#157100
May 13, 2009 at 11:53am

I replied to the previous message but hadn’t seen your post Axiom-Crux.

I need to track on a white background because I will be using it to present a presentation, and I want to be able to point at the presentation and get the camera to track the laser position and use the co ordinates to move the cursor accordingly.

I was originally going to use infra red but it turned out that the infra red laser diodes were too expensive and most of them were form america and would have to be shipped in. I am approaching the deadline for this so the red laser was going to be my backup plan!

Thanks for all your help, any other suggestions would be much appreciated!

#157101
May 13, 2009 at 12:58pm

nah, you lookin in da wrong place if you think infra red is too expensive, in fact I got a cool system with a pen thats made to use the wiimotes, basically makes any projector into a giant wacom tablet! wiimote costs about 30 bux and the pen is well under 10 bux, leds cost about 1 dollar or less, and you can make your own pen with just a button and a battery and an infra red led.

This may not be what your looking for but could lead to a new avenue

http://penteractive.us/?gclid=CL2Uj_OruZoCFQIwxwodji43Ow

#157102
May 13, 2009 at 1:05pm

That is the thing though, I need an infra red laser, not an led, so i can point at the projection screen and control the cursor as opposed to just using a pen like an interactive whiteboard

#157103
May 13, 2009 at 3:00pm

use both.

#157104
May 13, 2009 at 4:06pm
robtherich wrote on Wed, 13 May 2009 09:00
use both.

How do you mean? Im confused!

#157105
May 17, 2009 at 11:54pm

this isn’t exactly max related but check out graffiti research lab. they are doing almost exactly the same thing using regular laser pointers. http://graffitiresearchlab.com/?page_id=76#video

#157106

You must be logged in to reply to this topic.