Ask Your Question

Revision history [back]

You can use approxPolyDP(Douglas-Peucker algorithm) for line approximation. You can use this sample.

You can use approxPolyDP(Douglas-Peucker algorithm) for line approximation. You can use this sample.. The best solution for solve this problem create skeleton of image then approximate skeleton by Douglas-Peucker algorithm.