opencv implementation of arc tracking