How to split "A" shape into 3 linesegments?

For example, I want to find three pointsets from the below image, one pointsets for one linesegment.
How to handle it via opencv? thanks in advance.

Three point sets for each line segment? Last time I looked a line segment is defined by two points, which one would not call even one set…

it is a bit long time not to use English, I’ve refined these words.

  1. use houghlines to get the line equations, then
  2. extract the white points findnonzero
  3. fit them to the closest line
1 Like