|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Quote:
Quote:
-Kevin |
|
#32
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Ive looked through this a bit and basically conceptualized a couple of ways to go about this. First off... if you look at kevin's old camera code you will see that all of the data that you could ever need it within the t_packet_data structure. The bounding box corners are there, along with the centroid location.
the way that i am conceptualizing going about this is pretty much to use size and confidence in order to determine the number of targets. the way i see it, the confidence will decrease when you have a low amount of tracked pixels within a large bounding box. When this confidence goes below a certain threshold, the code will know that only one target is in sight. The next challenge is finding the centroid of each target. Ok, you know that the camera's X boundaries (but not necessarily the y boundaries) will mark the left edge of the left target, and the right edge of the right target. you will not know the height from this data, but you will not need to. the targets are in a fixed aspect ratio (like 2:1 w:h i believe), and you know the tracked pixels that you have. With this data, by dividing the tracked pixels by two and conforming each dividend to the aspect ratio, you can get an approximate X location of each target. if you combine this method with the frame differencing data you could probably get the approximate Y value of each target as well. I will have to play around with this method a bit more in labView before i am able to come up with a conclusive algorithm... but that is what i have for now. |
|
#33
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Quote:
Quote:
-Kevin |
|
#34
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Quote:
-Kevin |
|
#35
|
|||
|
|||
|
Re: Where is the multi object tracking code for the RC?
Quote:
Thanks, Robinson |
|
#36
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Quote:
|
|
#37
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Quote:
I thought the general rule was that you couldn't come on the field with tape measure and other measuring tools to precisely position your robot. Other than that, you can place it however you want. That is the whole point. Last year, you could aim your robot "exactly" facing toward the corner or center goal so you could score. |
|
#38
|
|||
|
|||
|
Re: Where is the multi object tracking code for the RC?
Quote:
|
|
#39
|
|||
|
|||
|
Re: Where is the multi object tracking code for the RC?
The multi-object tracking cmucamera 2 code shown in the 2007 kickoff can be downloaded here:
http://first.wpi.edu/FRC/25814.htm This link was also accessible from the usfirst.org programming resource library accessible from usfirst.org. Anyways, I'm posting this because the intelitek webisite link ( http://www.intelitekdownloads.com/easyCPRO/ ) that was posted earlier, while containing the same code I beleive, is currently down due to exceeding their bandwidth. Michael 1353, Spartans Last edited by michniewski : 15-01-2007 at 22:44. |
|
#40
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
So...IS there going to be multi-object tracking code available?(Not the EasyC) Or do we have to modify the existing camera code ourselves?
|
|
#41
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
If you look at the EasyC code it is very simple. All the information from the camera is available through Kevin's code. I think it took me about 2-3 to get it working.
|
|
#42
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Quote:
Anyway, I have an idea for an algorithm that I'll have time to test out over the next few evenings. If it works well, I'll post it on my website. As all good engineers keep a backup plan in their pocket, you might consider implementing one of the other algorithms discussed in the forums, or invent your own. Either way, your time won't be wasted thinking about the problem. -Kevin |
|
#43
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Quote:
|
|
#44
|
|||
|
|||
|
Re: Where is the multi object tracking code for the RC?
Sounds like we're all thinking along the same track.
Lets say the rack is turned so an unlighted sided is directly in front of the robot. The two lights will be on the opposite sides of the tracking box and the centroid about in the middle. So keep the centroid in the middle and march to the unlighted goal. Too Simple??? perhaps. BC |
|
#45
|
||||
|
||||
|
Re: Where is the multi object tracking code for the RC?
Another method for approaching the spider leg head on is to know your position on the field (meaning you have to get a gyro and accelerometer/encoder combo working in addition to the camera). If you know your position and the angle of the light you're tracking relative to you, you can determine what angle the light is facing and thus what angle you need to go in at.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing the visibility of an object | 65_Xero_Huskie | 3D Animation and Competition | 9 | 28-01-2006 17:12 |
| Where to get the 2006 default code? | Eldarion | Programming | 12 | 15-01-2006 15:48 |
| where can I find the code for the first 15 seconds? | CompMaster | Programming | 2 | 16-02-2005 16:23 |
| Where is the CMUcam2 code? | Matthew_H | Programming | 1 | 14-01-2005 17:49 |
| The object of Zone Zeal???? | Jay5780 | General Forum | 15 | 09-04-2002 19:54 |