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 Comments

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,[])
Thank you so much!
Can you help me for line segmentation?? I want code for that.

Sign in to comment.

Answers (0)

Asked:

on 1 Jun 2017

Commented:

on 3 Mar 2018

Community Treasure Hunt

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

Start Hunting!