The vision processing algorithm really shouldn't change between auto and tele-op. Really, if you have an automated feature in tele-op for aiming, even the robot motion shouldn't be different.
I'm not going to recommend the dashboard, as it introduces latency into your images (there are ways to fix it, but it's harder), but I did it that way in the offseason so here goes:
- Filter out your surrounding box. You can use a variety of color filters, shape filters, etc.
- Get the info from this box - center, etc.
- Process that info to get how much you need to turn, distance.
- Send this info to the robot.
- Move the robot to desired angle/distance.
If you need help, you can PM me.
__________________
2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award