Fix the circle detection by using OpenCV function.