I want to know about Horizontal Projection cut pic
1 回表示 (過去 30 日間)
古いコメントを表示
providing the image size 12 Arial font English by getting into a time line. Then make a cut line Each line out using the Horizontal Projection Each line was then cut out Save as image files of each line to be cut.
I want to know code in Matlab
I hope someone help me Thank you
0 件のコメント
回答 (2 件)
Image Analyst
2015 年 10 月 19 日
Hints:
Get the horizontal profile by summing vertically:
horizontalProfile = sum(yourImage, 1);
To crop out a band of the image:
subImage = grayImage(row1:row2,:);
To save it to disk:
imwrite(subImage, fullFileName);
2 件のコメント
Bachtiar Muhammad Lubis
2018 年 11 月 25 日
sorry my stupidness sir.
how can i find that row1 and row2 for every single line in text document image automatically ?
Image Analyst
2018 年 11 月 25 日
See my attached demo.
Adisorn Phanukthong
2017 年 1 月 15 日
1 件のコメント
Bachtiar Muhammad Lubis
2018 年 12 月 30 日
Please accept Image Analyst's answer brother !
if you are very satisfied from this answer you can do more effort to vote his answer.
Thank you
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!