Combine linear regresion and edge detection plus try point position antisipation assuming the next point will be either in line or at 90 degrees