count letters in image file
Ältere Kommentare anzeigen
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?
Antworten (1)
Image Analyst
am 6 Dez. 2014
0 Stimmen
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 Kommentare
Scott
am 6 Dez. 2014
Image Analyst
am 6 Dez. 2014
OK. Good luck. Writing your own OCR can be challenging, but good luck with it.
Kategorien
Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!