2. WHAT SEGEMENTATION
• Image segmentation involves converting an image into a collection of regions of
pixels that are represented by a mask or a labeled image. By dividing an image into
segments, you can process only the important segments of the image instead of
processing the entire image
4. 1- FIND THE HORIZONTAL PROJECTION
PROFILE AND FIND THE WINDOW
WHERE LINE SEGMENT CAN BE CREATED
• One of the common ways of finding the line-height of a document is by analyzing
its Horizontal projection profile. Horizontal projection profile (HPP) is the array of
sum or rows of a two dimentional image. Where there are more white spaces we see
more peaks. These peaks give us an idea of where the segmentation between two
lines can be done.
• Before we run the project we should also threshold the image to clean all noise.
5. As you can see, where there were more white spaces there are peaks in the graph. We will use
this information further to locate the regions where we can find the seperation line using the
A* algorithm.
6. 2-FIND THE MIDWAY WHERE WE CAN
MAKE A THRESHOLD AND EXTRACT THE
PEAKS REGIONS