1 | initial version |
You can use approxPolyDP(Douglas-Peucker algorithm) for line approximation. You can use this sample.
2 | No.2 Revision |
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.