Contour de l'image en utilisant python / PIL

J'ai une photo couleur de la pomme, comment puis-je afficher uniquement son contour (à l'intérieur blanc, arrière-plan noir) avec python/PIL?

source d'informationauteur user1212200