I want to recognize a Black / White pattern from several TIFF files
The file has some regions with Hand writing and (Black) and spaces between each paragraph.

I want to determinate how many paragraphs has the image, The best way I thought was ising the im_profile Script from here
http://www.imagemagick.org/Usage/scripts/im_profile and then count the the Blank Spaces.
However is not quite simple, according to the image.
How I can pre process the image to get this working?
There is other way to get this result?
Can somebody help me?
Thanks a lot