Go to Post Ship dates, rules and deadlines all share one thing in common, they are your friend. - billbo911 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 22-01-2007, 14:48
jt250 jt250 is offline
Registered User
FRC #0250
 
Join Date: Jan 2007
Location: New York
Posts: 5
jt250 is on a distinguished road
Re: Multiple Light Tracking with Distinct Light Boxes

The full blog entry is up and can be read here: http://cr4.globalspec.com/blogentry/...amming-CMUCam2

It discusses a little bit more than the camera, just to let you know. Anyways, for now here are the basic steps for how it works:

First, put the camera in Polled Mode, (command is "PM 1"). This means that for every Track Color command sent, only one T packet will come back. This allows you to write back to the camera without it flooding you out with data. (This may not actually be necessary, but it seemed to work more reliably for us when we did this)

Now cycle through this loop:

1. Using the regular camera window, track onto a target. A T Packet will be sent
2. Based on the centroid coordinates in the T Packet (labeled .mx and .my in Mr. Watson's code), draw a Virtual window with the following parameters: 1, 1, centroid_x, 239. Then resend the Track Color command
3. Now draw a virtual window from: centroid_x, 1, 159, 239. Resend the Track Color command.
4. Set the virtual window back to the full view: 1, 1, 159, 239 and go back to step one.

Effectively, what this does is split the window in half based on the center of the initial blob received. To make it more robust you might want to have it only do the splitting if the confidence is below a certain value. When we've cleaned it up and made it work with the dashboard we will post some more.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Green light same color as overhead light Ethulin Programming 13 02-08-2007 15:24
Light Tracking theycallhimtom Programming 1 19-01-2007 15:11
camera trouble,cant tell the green-light from regular white light Nimmy Programming 26 14-01-2007 14:53
Sensor Tracking the Boxes mjt902 Programming 25 29-01-2003 16:24
Please help me with the size of the rotating light!!! bigqueue Technical Discussion 5 21-01-2002 09:40


All times are GMT -5. The time now is 03:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi