How to recognize scale marker text in the image?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello All, I wish to identify scale marker text in the image. And would like your suggestions and ideas for Algorithm. In Image given below its 100uM and thats what I would like to recognize.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196893/image.jpeg)
댓글 수: 5
Image Analyst
2018년 10월 4일
Well, did you try my code below? If not, why not? If it's not what you want, then explain better exactly what "identify" means to you.
채택된 답변
추가 답변 (1개)
Image Analyst
2018년 10월 3일
It's a constant and uniform gray level, so just detect that. For example if it's gray level is 175, do
scaleMask = grayImage == 175;
scaleMask = bwareafilt(scaleMask, 1); % Take largest blob.
scaleMask = imfill(scaleMask, 'holes'); % Fill holes to get rectangular block.
Not sure what you want to do after that.
댓글 수: 8
Image Analyst
2018년 10월 9일
Glad it's working for you. Do you want to post the final code so that people won't post here for years to come "Can you please upload your code?" as they always do.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!