|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: How do YOU find the distance from the light?
The CMU camera reports a blob or size.
If the object is far away the blob size value will be small. If the object is close to you, the blob will be a large value. A blob is the green light. Since the green light is a fixed object size, and your camera FOV (field of view) is a fixed size, you can mark out calibration points on the floor to determine a relationship of depth perception. For example setup your camera and light, look at the size number the camera reports. If your ten feet away, record the size of the blob, mark out set distances on the floor with masking tape. 0 feet, 1, 2, 3, 5, 10, 20 feet. Move camera to each distance. Record camera values. You should get a fairly linear relationship in distance to size of blob the camera is reporting back to the RC. Once you have this distance calibrated, you now can convert these values to a distance measurement. Example maybe 100 "blob size" values equal 5 feet, you should also be able to calculate your cameras resolution value. 1 pixel = so many inches... This will be your robot accuracy. Word of caution. Calibration with this procedure will change if you: 1. reteach the camera to a different color or RGB signature. 2. re focus the camera lens be twisting the lens. If you do any of the above, you must repeat your calibration procedure to obtain this highest point of accuracy. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how do you wire the team light | coolguybigt | Robot Showcase | 2 | 21-02-2007 22:18 |
| How to make the camera search the light instead of only follow when targeted? | jesusescobar | Programming | 4 | 18-02-2007 16:56 |
| where can i find how the ringer is deployed by the ...... | waialua359 | Rules/Strategy | 7 | 08-02-2007 10:39 |
| camera trouble,cant tell the green-light from regular white light | Nimmy | Programming | 26 | 14-01-2007 14:53 |
| How do I get distance between Camera and the target? | sjung9442 | Programming | 5 | 27-01-2006 09:44 |