Quote:
Originally Posted by guoruiwu1994
From reading the forums, I see that a good way is to see where the carpet is missing, and then just assume that's where the ball is. However, we don't know which classes and funtions to use in order to achieve this. If anyone can help us on this that would be great.
|
We were originally going to try this method, but due to other objects on the field like robots and the playing field, and having to deal with elements outside of the playing field that the camera would pick up, we deemed this not to be very practical. Unless of course your camera is pointed down sufficiently enough that these things wouldn't be an issue.
Instead our students implemented a normal circle tracking script tuned to the ball instead, reportedly it can track the ball while its even flying through the air (Not sure of the utility in this capability but this means it will work pretty reliably on the ground). I will upload the NI Vision script here so that other teams can tune it to their own needs.