Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to disconnect small connection in image

Subject: how to disconnect small connection in image

From: Md.Khaled hossain

Date: 30 Jan, 2012 20:29:42

Message: 1 of 3

if I want to OCR a handwritten document where user used a continious
method of writting. I mean while he wrote he made a connection between
"Lm" the line of 'L' shape is bold and the digit 'm' is also bold and
the connection between them is a thin line. which cannot be reduced by
thresholding. the line is clear but a thin line. how to disconnect the
two digits?

Someone might suggest to crop the area but for all the letters the
area is not fixed, so I might come up with cropping other digits.

Is there any method which can disconnect this two digits?

Subject: how to disconnect small connection in image

From: Sadik

Date: 31 Jan, 2012 04:30:09

Message: 2 of 3

Hi Khaled,

You can try imerode. I guess it can help. You may want to use imdilate after applying imerode in order to recover back [to some extent] the thickness of your letters, L and m.

help imerode
help imdilate

Best.

Subject: how to disconnect small connection in image

From: ImageAnalyst

Date: 31 Jan, 2012 13:30:51

Message: 3 of 3

On Jan 30, 11:30 pm, "Sadik " <sadik.h...@gmail.com> wrote:
> Hi Khaled,
>
> You can try imerode. I guess it can help. You may want to use imdilate after applying imerode in order to recover back [to some extent] the thickness of your letters, L and m.
>
> help imerode
> help imdilate
>
> Best.

------------------------------------------------
If the letters are dark on a white background, you'd want imdilate
first, then imerode, which together is the same as imclose, which I
suggested. If you have white letters, you'd want imopen.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us