M
M
makondo2019-10-25 11:58:00
Vector graphics
makondo, 2019-10-25 11:58:00

Is it possible to vectorize an open contour in opencv?

I have an input image that has open lines on a black background. They are close to straight line segments, but not exactly. It is better to call them smooth non-closed curves. There can be many of them, some of them are almost parallel.
I want to find a way to vectorize them - i.e. get at the output a set of sequences of coordinates (x;y) that define the ends of each such curve and significant bends / breaks.
openCV has a findContours function, but I didn't understand if I could use it in this case.
Has anyone encountered such a task and is it possible to use openCV functions for it? Or maybe some other open library is suitable?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question