View Single Post
  #2   Spotlight this post!  
Unread 07-01-2013, 12:09
nathan_hui nathan_hui is offline
Registered User
AKA: Nathan Hui
FRC #2473 (CHS Robotics)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Cupertino, CA
Posts: 228
nathan_hui will become famous soon enoughnathan_hui will become famous soon enough
Send a message via AIM to nathan_hui
Re: Aiming using reflective tape

So the general answer is you need to write an algorithm that figures out where on the image the center of the rectangle is, and use that to determine the amount to turn.

The hard part is writing that algorithm. There are a bunch of solutions, none of which are simple. You could use the NI Vision libraries, or you could include OpenCV with your robot project. You could write your own image recognition algorithm (SAD, threshold, SSD, etc.).
__________________
Nathan Hui
B.S. Electrical Engineering, UCSD '16
FRC 2473 (CHS Robotics), Team Captain '12
FTC 4950, 6038
Reply With Quote