OpenCV Contour problem

OpenCV Contour problem

Vijay Oza's picture

I want to use OpenCV to convert a raster image to a vector based image my first step is to create a smooth outline of the objects in the image. To do this I use Cammy to find the edges and use FindContour to get the outline but the data I get from FindContours is jagged and rough. Also I am finding the FindContour is giving my broken and double contours I want to merge these contours. I thank the problem is with the setting  I want to used the data from FindContours to smooth the image data rather then has a pixalated image. I want to a polyline or a spline curve.

I have attached some example jpeg for referance.

Thanks again in advance

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.