count letters in image file

조회 수: 2 (최근 30일)
Scott
Scott 2014년 12월 6일
댓글: Image Analyst 2014년 12월 6일
i would like to count the number of letters present in an image which contains a bunch of lines of text. i know that somehow, i have to look at each individual pixel and see when the pixel value changes from 0 to 1 (black to white) and then increment a count.
but because different letters look so different from one another, i am really not sure of the algorithm to use here.
any suggestions?

답변 (1개)

Image Analyst
Image Analyst 2014년 12월 6일
Simple blob analysis is difficult because some letters are composed of multiple blobs, like i and j. So you need to recognize the letters. Try this: http://www.mathworks.com/help/vision/ref/ocr.html#bt548t1-2_1
  댓글 수: 2
Scott
Scott 2014년 12월 6일
the only thing is that i am trying to do this manually, rather than using a tool like OCR
Image Analyst
Image Analyst 2014년 12월 6일
OK. Good luck. Writing your own OCR can be challenging, but good luck with it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by