Detecting circles and lines