How does to calculate dots in arabic handwriting recognetion

2 views (last 30 days)
I want to create function to determent the number of dots in in Arabic handwriting recognition my idea is create function of connected component then determent number of connected component .so this number of component subscribe form number of connected compo crossed by the baseline I can't do the second part ( number of connected compo crossed by the baseline) How can do it

Answers (1)

Image Analyst
Image Analyst on 5 Apr 2014
Just threshold your image. Now I imagine a dot is smaller than anything else. So just run regionprops to find out all the areas and determine the largest area that might be a dot. Then just use ismember to filter out all non dots. Or alternatively you can use bwareaopen to filter out all dots: subtract the bwareaopened image from the original binary image to leave just the dots. But you have to know the area first so you do need to run regionprops at some point, unless you just want to guess at it. See my image segmentation tutorial in my File Exchange for an example where I extract different sizes of coins. http://www.mathworks.com/matlabcentral/fileexchange/25157-image-segmentation-tutorial-blobsdemo
  7 Comments
Image Analyst
Image Analyst on 9 Apr 2014
I see. And you say area is not a good discriminator for what's a dot and what's not? Why not? All the "dot" blobs look on the small side.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!