Maybe you're only interested in working on a native GEM solution, but Jaime Oliver made an external for this a few years back. You can get it at his website, under the software tab:
On Fri, Dec 3, 2010 at 10:50 AM, John Canning johnnyboy7777@hotmail.co.uk wrote:
Hi Folks,
I've been trying to do some colour tracking, just tracking a red object for the moment, although I do eventually want to be able to tack three different coloured objects. Here is the patch I have been working on. I've got some info from the mailing list which has informed this patch but (as you can see) I haven't been able to decipher the info enough to get the patch working. Any help would be appreciated.
Cheers, John
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list