File Exchange

image thumbnail

Character Recognition Example (I&II): Pre-processing of Image

version (76.3 KB) by Tan Chin Luh
This demo shows some examples for image pre-processing before the recognition stage.


Updated 04 Oct 2005

View License

This demo shows some examples for image pre-processing before the recognition stage. the first example is just some commnads of image processing which are commonly used for preprocessing, while the second example shows how to use the simple command to automate the image processing stage especially in generating training dataset for neural network for recognition purpose. More information ca be found at:

(recognition stage will be uploaded in next example)

Cite As

Tan Chin Luh (2021). Character Recognition Example (I&II): Pre-processing of Image (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (25)

Praveen Kumar

I'm new to Matlab... which one to run first ....please explain me the procedure...

Duc Hoang

Asif Sharif Chaudhry


how can do for letters

Jongsung Kim

where i can download this file???

Sana Moussa

please how can i download this file ?

Lahiru K

Thanks a lot...It will helpful.


Only using bwlabel. That´s all!

tigist gebeyehu

when ever i type the function edu_imgpreprocess i am getting the error below
''Undefined function or method 'edu_imgpreprocess' ''
can anybody tell me what is happning please

sofia nadatul

hye tan chin luh.
i'm doing my final year project about postage stamps recognition..
i'm having problem in how to recognize the stamps because i've scanned the stamps and i didnt know how to uploads the stamps in the matlab..seriously its very tidious and hard project..i really hope u can help me..
thank you

if I need to recognize regional language
Can u explain me in brief ,how can i do that...??

plz contact me at

Marco Guevara

Muchas gracias, buen codigo, sirve de mucho, pero es posible mejorarlo...

ali raza


abdullah kuzhan

we ll see

Chuleeporn Kanthong

Thanks you for learning.I lived in Thailand .My name Chuleeporn Kanthong .I study Master degree in KhonKean University.I hope your mail to me.You are my friend. Bye .... Bye .

saleh ali

ravi maski

kailup Tan

Dear Tom G,
Thanks for your comment. I really dunno how to reply you since you're not leaving any email or contact. this program is written in ML 7, and might gives some error on ML 6.5 and below. refer to comments on I&II and III for more infor on this.

Dear Fabricio Nunes ,
I've replied you question, do check your mail and see whether it helps.... thanks


Fabricio Nunes

??? In an assignment A(:,matrix) = B, the number of elements in the subscript of A and the number
of columns in B must be the same.

Error in ==> D:\fabricioC\fabricio\visao\fonte\simplecharrec(III)\edu_imgpreprocess.m
On line 26 ==> Ic(:,4) = 1:50;

Error in ==> D:\fabricioC\fabricio\visao\fonte\simplecharrec(III)\char3.m
On line 8 ==> img = edu_imgpreprocess(I);

Tom G

Does not work!

ravi prasad can help me in doing my final year project.but can u plz give some idea about how to open and alter the "" file in your simplecharrec(III).zip file

fdhf hfh

ashok ghildiyal

Darunee Yuangmeay

its help us to lerning for our project in university

lissa anastasia can help me in doing my final year project.but can u give some simple code for the image segmentation and feature extraction for character recognition.tq

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!