Sorting Contours using Python and OpenCV

[email]
[email]