resample the stroke before recognizing the circles