I have an image that has a regions which are non white (ex. paragraph but not dealing with OCR). The space between these regions somewhat regular, a person looking at the image will be able to see there are white spaces between these regions.
What I plan to do is find the top and bottom corners of all regions, start from the bottom corners to the next region's top corners, take entropy of each horizontal line, and the line with the lowest value and return that line's Y position.
[region] <--- maximum corner coordinates identified
[line with lowest entropy] <--- return Y position starting from above region's bottom corner's Y coordinate.
[region]<--- stop at Y coordinate of this region's top corner.
What I intend to do is crop out these regions.
Another approach I thought of was using a histogram to identify the lowest points and somehow find the position of that lowest bar.