How does to calculate dots in arabic handwriting recognetion

1 次查看(过去 30 天)
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

回答(1 个)

Image Analyst
Image Analyst 2014-4-5
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 个评论
Image Analyst
Image Analyst 2014-4-9
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.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by