Extract external contour or silhouette of image in Python,"contour(im, levels=[245], colors='black', origin='image')"