The contours package exposes Matplotlib's contour generators to the user providing an equivalent of MATLAB's contourc function.
I was myself facing the need of a function that could compute the contours of an image and give me the polygones without the need ...