In this article, I will explain a widely used method for segmenting handwritten documents into individual lines.
An important pre-processing step in any OCR tool or algorithm is to deskew the scanned document first.
The basic idea is to find the Xmin, Xmax, Ymin, Ymax of each identified coordinates of the contour and then create a rectangle using it.
The Harris corner detection algorithm also called the Harris & Stephens corner detector is one of the simplest corner detectors available.
An extremely magnified image at the end is just blocks of colors called pixels, where each pixel is formed by the combination of Red, Blue and Green, our primary colors. RGB color space or RGB color system, constructs all the colors from the combination of the intensities of Red, Green and Blue colors.