Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   tracking two tetras? (http://www.chiefdelphi.com/forums/showthread.php?t=34187)

Anton 08-02-2005 13:09

tracking two tetras?
 
recently I thought about tracking two tetras at once(if they are both in my field of view) or at the least driving towards ONE of them.
If i could paint half the picture with black, I could just erase one tetra.
now how ca i change anything about the picture?

Anton 08-02-2005 14:49

another problem
 
also, sometimes the camera gives me a GREEN picture- with everything green and blue and black.
does anyone know why?

logicalhippo 08-02-2005 23:31

Re: tracking two tetras?
 
This is a SERIOUS problem that at the moment I'm quite concerned about. (the two tetra problem) - basically what it comes down to is you're going to have to do something tricky. The camera detects the center of mass of the calibrated color in the image, which means that if two tetras of equal distance are in the field of vision, the camera will return the point between them.

One thought I had was you could start your robot facing paralell to the wall, set the x-range of the view window to a really small value (10-20), and then slowly rotate the robot until it sees a tetra. because of the small window, we can be reasonably sure it is only one tetra. I haven't tested this yet.

russell 08-02-2005 23:39

Re: tracking two tetras?
 
Try this: When you see a tetra pan the camera far enough that the center point of the target should be right on the edge of the field of view of the camera. If it is where it should be then you are only tracking one tetra. If not then you were previously tracking two tetras and now you are only tracking one. Some variation on that.

Anton 09-02-2005 08:59

Re: tracking two tetras?
 
Quote:

Originally Posted by logicalhippo
set the x-range of the view window to a really small value (10-20) .

Actually, my question was how to change the field of view?

logicalhippo 09-02-2005 15:02

Re: tracking two tetras?
 
you can't using the default code as it is. Basically you send:
VW xmin ymin xmax ymax\r
to the camera. I'm not too familiar with the default code so I can't help you any more. sorry :'(


All times are GMT -5. The time now is 12:17.

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