Can detect contour automatically