Apply blurring and Canny filter before contour extraction.