To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
The image in the below link is a sentence.
Is it possible to divide the sentence into words..... that is I want to draw a box around the words and display each word separately.... Please can someone help me.... How to identify words from an image..... Please do reply....
No products are associated with this question.
I gave code for that here: http://www.mathworks.com/matlabcentral/answers/67860#answer_79275. Try to adapt it.
Try thresholding, then dilating to connect letters in the same word. Then call regionprops() to get the BoundingBox of each word. That's what I did in that link. Try to adapt that code. Post your code back here as a comment below this answer if you have trouble with it. That code will get you sub-images that are the chunks cropped from the original image. But if you want a string of ASCII text that says " A MOVE to stop Mr. Gaihhell from urinating" then you'll have to use OCR and that is a lot more complicated, especially for handwriting as bad as what you've shown.
imdilate(). regionprops() to find the resulting bounding boxes.
Or alternately, regionprops() to find bounding boxes. Merge any areas whose bounding boxes touch or overlap. Now, find the distances between bounding boxes. You will find that they have an uneven distribution, small distances between adjacent letters, larger distances between words. Merge the areas that are only a small distance apart. You might want to use a ratio of the size of the existing bounding boxes to help determine what "small distance" means.
Strings such as
could give you trouble, though.