Documents may suffer from perspective distortion when captured with hand-held digital cameras. A morphology based rectification method is proposed to recover fronto-parallel views of perspectively distorted documents images. Firstly we extend the nearest-neighbor (NN) clustering technique in document skew rectification to locate the horizontal vanishing point of the text plane. Secondly we partition the image into multiple overlapping blocks centered with the centroid of each connected component (CC), and propose a run-length opening algorithm (RLOA) to compute the local orientation of vertical character stroke (VSB), which is used to locate the document's vertical vanishing point. Finally, a three-step hierarchical rectification method is proposed to rectify the distorted images. Experiment results on various types of documents show that the proposed rectification method has achieved accurate recovery of document images.
展开▼