have used Canny to find all the edges, and use the contour function to list the coordinates of all edges,like the picture below. It have too much information, so I want to u