A Run Length Smoothing-based Algorithm for Non-Manhattan Document Segmentation