Reflective tape vision algrorithm for FRC
Python-side of vision algrorithm to detect reflective tape and send data to ROBORIO through pynetworktables.
- Identifies contours and finds bounding boxes of tape.
- Evaluates the angles created by the midpoints of the short side of the tape.
- Determines tape pairs based on opposite negative/positive angles
- Find the outer vertex points of each tape in pair.
- Determines intersection point of vectors formed by top vertex and bottom vertex of opposite tapes.
- Returns offset of intersection point from center, and length of each vector