File Exchange

image thumbnail

OPTICAL CHARACTER RECOGNITION(lower case and space included)

version 1.0 (52 KB) by

OCR to recognize upper/lowercase letters, numerals and spaces from a digital image.



View License

this project aims at recognizing

characters from a text image.

Both the uppercase and lowercase letter with numerals are recognized.

And spaces are also recognized within different words.

The process of OCR involves several steps including segmentation, feature extraction, and classification.
OCR.m is the principal file

Comments and Ratings (22)

divya a

if recognise some other images using this code?please help me

Sachin Sinkar

Thank you, a great work indeed.

Duc Hoang

Kevin Adamek

What font does this work for?

Ankit Saroch

@Venkat, Sai and Paul, I'm not in touch with MATLAB for a while now, as far as i remember I've created the fonts in MS Paint. Just make sure the resulting image is not pixelated.

please tell me how bmp files for different fonts are created

How to make .bmp files for different styles of fonts. Can any one help me on this.
my mail id is:
i tried a lot with photoshop and paint but its not working.

Nice work. Could you tell me what you used to create the letters for lower case? I'm interested in expanding this to include Russian text.


smruti (view profile)

sir your idea is very good,but please will you help me to get the code for detecting space in text.and will it be possible to detect the type of statement extracted plz help me out .i am beginner in MATLAB


luis (view profile)



NA (view profile)

it is showing an eroor at line 70
letter = read_letter(img_r,num_letras);
??? Undefined function or method 'read_letter' for input arguments of type 'double'.

Error in ==> OCR at 70
letter = read_letter(img_r,num_letras);
do correct it please

very well done!
its really helpfull for me as a beginner.


memo (view profile)


memo (view profile)

Firstly this program is very very useful and good effort !!
I have a question :) what if we would recognize arabic letters instead of english ? like أ و ب ت ف ع ن م ك ة

Ankit Saroch

Nopes, I haven't referred to any IEEE paper for this...

Sam Terry

Really useful.. could you please tell me if you have referred to any IEEE paper or so?

Great work.

kasturi basu


Ahmet (view profile)

MATLAB Release
MATLAB 7.9 (R2009b)

Inspired by: Optical Character Recognition (OCR)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video