How to save detected edges in dwg/dxf formats [closed]

asked 2016-01-28 00:54:30 -0600

rojgarq@gmail.com gravatar image

updated 2020-10-18 10:32:40 -0600

After edges has been detected using Open CV-Visual Studio is it possible to save in dwg/dxf format?

edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by sturkmen
close date 2020-10-18 10:32:52.925920

Comments

1

none of those (proprietary) formats are supported from opencv

berak gravatar imageberak ( 2016-01-28 01:29:16 -0600 )edit

So How can I make a vectorization for detected edges in Open CV?

rojgarq@gmail.com gravatar image[email protected] ( 2016-01-28 02:07:10 -0600 )edit
1

you probably did not even realize yet, that Canny or such alone won't give you any vectors.

you need findContours to get those.

berak gravatar imageberak ( 2016-01-28 02:14:35 -0600 )edit

I think there is some misunderstanding between us, what I need exactly is how to vectorizing generated contours? if possible

rojgarq@gmail.com gravatar image[email protected] ( 2016-01-28 02:38:22 -0600 )edit

again, findContours will give you a list of points for each contour found, just try the tutorial

berak gravatar imageberak ( 2016-01-28 02:55:24 -0600 )edit