Given the outline that marks the edge of the letter S (for example, in comics), how can I get a series of points along the spine of this letter so that I can later represent this shape using lines, a cubic spline, or another curve - a representative technique? I want to process and submit a form using 30-40 points in Python / OpenCV.
Morphological skeletonization can help with this, but surgery always seems to generate erroneous branches. Is there a better way to collapse the outline only in the shape of the letter S?

" ", , . , , , , , , .

:

, , " ", , .