MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Soumyadip
on 19 May 2013

Hi,

I have been working on a project to extract the digits from a calculator screen. The full image is

Now I successfully extracted only the screen from the above full image and after some image processing operations, I could generate the following image

However, in the above image of the digits, some of them are overlapping. So it is becoming difficult to individually segregate each digit. Can anyone suggest how to remove the connections between the digits? Will any of the utilities in the function bwmorph() help?

Answer by Image Analyst
on 19 May 2013

I might have already suggested this in your earlier series of questions, but did you try watershed segmentation, like in Steve's demo:

http://blogs.mathworks.com/steve/2006/06/02/cell-segmentation/

Soumyadip
on 19 May 2013

Ok, I am trying to implement watershed segmentation in my code. Meanwhile, I was thinking of applying the 'thin' utility in the bwmorph function. There is a 'bridge' utility in bwmorph to form bridges between pixels, but I need just the opposite. Can you suggest anything regarding that?

## 2 Comments

## Image Analyst

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/76314#comment_149745

FYI: continuation of http://www.mathworks.com/matlabcentral/answers/68387-recognizing-text-from-image-of-a-calculator

## Soumyadip

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/76314#comment_149748

Yes. I am gradually progressing.