![]() |
Backboard angle using vision tracking
I've been doing a ton of work on vision tracking and so far it's been going pretty well, but the main issue is that we don't want to shoot at the vision target - we want to shoot at the center of the hoop! We have the math working to adjust for that, but we need the angle of the backboard relative to the robot
We were thinking of using the apparent aspect ratio of the target to determine the angle (the target is 4:3, so if it appears to be 1:1, we should know we're at an angle). The problem with this is that A. we have no idea what direction we're facing the target at, and B. due to fisheye on the Axis 206 camera we're using, even when we're directly facing the target, if the target is toward the sides of the screen, it reports a ~20 angle. Does anyone have any ideas on this? |
Re: Backboard angle using vision tracking
Once you have the location of the target within the image, you can do further processing on only that local area. One approach that may work is to look for something else such as the hoop or the net. Another approach would be to use tools like the edge detection or do some processing on an given column of pixels to identify the ratio of the left and right edge. I posted in another thread on a more precise technique using law of cosines to solve for the angles of the triangle between the left edge, camera, and right edge.
Greg McKaskle |
Re: Backboard angle using vision tracking
Quote:
|
Re: Backboard angle using vision tracking
The thread
And I expect that this is the post you want, but it looks like there is good information in some of the other posts as well. |
Re: Backboard angle using vision tracking
Quote:
|
Re: Backboard angle using vision tracking
As for the distance error. It definitely should exist, but doesn't seem that bad for what I thought were reasonable shooting positions. Your milage may vary. A somewhat bigger issue is that this is a distance and position to the center of the rectangle, and that distance and angle may not be where you want to send the ball. If you want a swish-shot, you ideally want to know the center of the hoop. It is near the target, but not at the same position. If you way to bank shot, do you want to shoot at the center of the rect always, or perhaps a bit to the left or right according to angle. I think the answers depend on your shooter.
Of course if the shooter is not super repeatable, these calculations may be overkill. Greg McKaskle |
Re: Backboard angle using vision tracking
Quote:
thanks |
Re: Backboard angle using vision tracking
Please share, send me a pm if yo uwant :D
|
| All times are GMT -5. The time now is 23:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi