Help with segmentation of characters

I have this image.
I have performed line segmentation and now I am trying to use regionprops to perform character segmentation. The problem is, since the image is segmented quite close to the characters, regionprops doesn't work. Could anyone help me out with this?
This is what my output looks like:
Thank you

3 comentarios

Try something like this, you can increase/ decrease strel size, look on imopen, imclose, imerode, imdilate for more information
img = rgb2gray(imread('lucy.jpg'));
% erode image
erodeImg = imerode(img,strel('disk',3));
figure, imshow(erodeImg,[])
% Then label
BW = bwlabel(erodeImg);
figure, imshow(BW,[])
shru s
shru s el 4 de Jun. de 2017
Thank you so much!
HJ Akhtar
HJ Akhtar el 3 de Mzo. de 2018
Can you help me for line segmentation?? I want code for that.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 1 de Jun. de 2017

Comentada:

el 3 de Mzo. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by