Fast algorithm for detecting circles with Hough transform