matlab code for character segmentation by horizontal and vertical projection profile

I do segmentation by Bounding Box but i try by projection profile method.For bounding box method the cod is,
%% Label connected components
[L Ne]=bwlabel(~im2);
%% Measure properties of image regions
propied=regionprops(L,'BoundingBox');
hold on
%% Plot Bounding Box
for n=1:size(propied,1)
rectangle('Position',propied(n).BoundingBox,'EdgeColor','g','LineWidth',2)
end
hold off
pause (1)
%% Objects extraction
figure
for n=1:Ne
[r,c] = find(L==n);
n1=im2(min(r):max(r),min(c):max(c));
imshow(~n1);
%imsave();
pause(0.5)
end
can anyone tell me how can i segment the characters by Projection profile method???

回答 (1 件)

moahaimen talib
moahaimen talib 2017 年 5 月 7 日

0 投票

Bounding box failled with my tablets is you way better?

カテゴリ

ヘルプ センター および File ExchangeSimulink Design Optimization についてさらに検索

タグ

質問済み:

2015 年 1 月 20 日

回答済み:

2017 年 5 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by