Contour Detection Python Code Example