I have a scanned image of a page of text of which I want to segment the lines of. For example, using simple methods like: using a rectangle boundary box method slicing it into fixed rectangles The size of the rectangle should be a variable which I can change manually. I do not want to use the projection profile method as there may be touching overlapping lines. Here I just want to experiment with this method of just slice of it using this rectangular way. I am looking for a method of automating the process ( instead of cropping it manually ) Can someone suggest implementations and relevant materials in Matlab / Python ? My input is one jpg image and output will be a number of images ( based on the number of lines ) and the aim is to save each segmented line ROI as as line_1.jpg, lie_2.jpg and so on. Continue reading...