Given the outline that describes the edges of the S shape in OpenCV / Python, what methods can be used to trace the curve along the center of the shape?

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?

enter image description here

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

enter image description here

:

enter image description here

, , " ", , .

+3
2

. . , , Potrace. , python, , , , ++, :

.

, . , , , .

enter image description here

:

enter image description here

.

, , , :

  • ( A)
  • RDP, A, RDP , .
  • delaunay.
  • , ,

enter image description here

+5

.

  • . .

  • . , " ".

, .

+1

All Articles