Re: [Flashcoders] Webcam color tracking

2006-09-15 Thread Serge Jespers

Hey guyz,

Thank you all for the replies.
I've sorta hacked it... Before I do the getColorBoundsRect, I now do  
a threshold on the image to make the colors that are close to what my  
LED looks like, 100% red. I then do the getColorBoundsRect on the red  
and that works just fine. Now I'll try different colors of LEDs to  
see which works best and to make sure there's nothing else in the  
camera's eye that has the same color.


It would indeed be great to see how Grant did his Mister Glove... But  
I'm guessing it's somewhere along the line of what I'm doing here...


Grtz,
Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Webcam color tracking

2006-09-14 Thread Roy Pardi
At 8:51 AM +0200 9/13/06, dan wrote:
Cheak out
http://www.tipo.co.il/media/doritos/
I use color + motion traking to find hands and track them


Has anyone tried any pattern/face reco routines in AS? I imagine it would
be slow but maybe with small bitmaps it wouldn't be too bad (for fun and
art, not for security ;-)

--Roy
-- 
-
Studio Blog: http://www.roypardi.com/
Exhibit Announcements: http://www.roypardi.com/announce.htm
Gandhi - Be the change you want to see in the world
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-14 Thread greg h

Serge,

Though I can not provide the source code, I have seen Grant Skinner demo an
application that tracks LEDs.  You can see it here:
http://incomplet.gskinner.com/index2.html#mister

In particular, at the link above select MISTER glove video.

Grant explained the details.  Perhaps others on this list recall details?

g


On 9/12/06, Serge Jespers [EMAIL PROTECTED] wrote:


Well... I need to be able to track a LED light.
I want to be able to track the position of the light to substitute a
mouse...

Serge



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-14 Thread Alias™

No, I still used getColourBoundsRect. It works OK until you get more than
one object of the same colour - then you end up getting big rectangles
which span the distance between the two, which is bad. You could *probably*
get around this with some kind of quadtree-type algorithm, it's something
I've been meaning to look into, and will probably be going back to soon. (As
soon as I get five spare minutes...)

Also - Grant Skinner claims to have solved the problem, but AFAIK, he's only
posted videos, not working examples, so I don't know what approach he used.

A

On 12/09/06, Serge Jespers [EMAIL PROTECTED] wrote:


Interesting...

So you didn't use getColorBoundsRect?
Did you 'walk through' all pixels then? Or how exactly do you search
for the color?

Serge


 Yeah, I've done some work with it.

 The trick is to apply some contrast filters to reduce the colour
 depth, and
 be a bit more picky about getting your source colour. You can do the
 getColourBoundsRect thing, but it's still pretty inaccurate though.

 Alias

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Webcam color tracking

2006-09-13 Thread dan
Cheak out
http://www.tipo.co.il/media/doritos/
I use color + motion traking to find hands and track them


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Serge
Jespers
Sent: Tuesday, September 12, 2006 10:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Webcam color tracking

Well... I need to be able to track a LED light.
I want to be able to track the position of the light to substitute a  
mouse...

Serge


 depending on what you want to do, I've converted stuff to black and  
 white
 (thank you keith peters) for easier tacking.  Alias' suggestion is  
 in the
 same vein of thought

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-12 Thread Serge Jespers

So... euhm.. no one?



Hey guys,

I was wondering if anyone has already tried webcam color tracking  
inside Flash 8 or 9...? So not the difference motion tracking that  
you see everywhere but tracking one particular color. Or I should  
say range of colors...


I started out with getColorBoundsRect but that doesn't seem to be  
accurate enough or I just picked the wrong color...


So...

1) Has anyone done it before? And if so, do you have a source  
laying around that could get me on the right track?

2) How does one select the correct color?

Thanks in advance for your massive replies ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-12 Thread Mick G

http://www.adobe.com/devnet/flash/articles/webcam_motion.html


On 9/12/06, Serge Jespers [EMAIL PROTECTED] wrote:


So... euhm.. no one?


 Hey guys,

 I was wondering if anyone has already tried webcam color tracking
 inside Flash 8 or 9...? So not the difference motion tracking that
 you see everywhere but tracking one particular color. Or I should
 say range of colors...

 I started out with getColorBoundsRect but that doesn't seem to be
 accurate enough or I just picked the wrong color...

 So...

 1) Has anyone done it before? And if so, do you have a source
 laying around that could get me on the right track?
 2) How does one select the correct color?

 Thanks in advance for your massive replies ;-)

 Serge
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-12 Thread Alias™

Yeah, I've done some work with it.

The trick is to apply some contrast filters to reduce the colour depth, and
be a bit more picky about getting your source colour. You can do the
getColourBoundsRect thing, but it's still pretty inaccurate though.

Alias

On 12/09/06, Serge Jespers [EMAIL PROTECTED] wrote:


Hey guys,

I was wondering if anyone has already tried webcam color tracking
inside Flash 8 or 9...? So not the difference motion tracking that
you see everywhere but tracking one particular color. Or I should say
range of colors...

I started out with getColorBoundsRect but that doesn't seem to be
accurate enough or I just picked the wrong color...

So...

1) Has anyone done it before? And if so, do you have a source laying
around that could get me on the right track?
2) How does one select the correct color?

Thanks in advance for your massive replies ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-12 Thread Serge Jespers
not the difference motion tracking that you see everywhere but  
tracking one particular color

Thanks tho...





http://www.adobe.com/devnet/flash/articles/webcam_motion.html




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-12 Thread Serge Jespers

Interesting...

So you didn't use getColorBoundsRect?
Did you 'walk through' all pixels then? Or how exactly do you search  
for the color?


Serge



Yeah, I've done some work with it.

The trick is to apply some contrast filters to reduce the colour  
depth, and

be a bit more picky about getting your source colour. You can do the
getColourBoundsRect thing, but it's still pretty inaccurate though.

Alias


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Webcam color tracking

2006-09-12 Thread Serge Jespers

Well... I need to be able to track a LED light.
I want to be able to track the position of the light to substitute a  
mouse...


Serge


depending on what you want to do, I've converted stuff to black and  
white
(thank you keith peters) for easier tacking.  Alias' suggestion is  
in the

same vein of thought


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com