Ask Your Question

Revision history [back]

How do I detect vertices of an approximated polygon?

Hello everyone. I am an FRC programmer working on detecting and identifying retro reflective tape. Currently, I can detect the tape and draw an approximated polygon around the tape that follows it in real time. However, I would like to make it so that an object that is also the same color of green (e.g. another team's led) does not get tracked if it has more vertices's than the tape I am detecting. My question is how can I obtain the number of vertices (not points) from the whatever object has an approximated polygon drawn around it. Any help would be greatly appreciated and very helpful. Thank you for your time.