MATLAB Answers

How to recognize lowercase letters in character recognition using MATLAB??

24 views (last 30 days)
Shavi
Shavi on 3 May 2012
Edited: Image Analyst on 15 Jan 2014
Please Help me as soon as possible.. As the templates are not working properly.. Also tell how to make the templates for letters and special characters??

  0 Comments

Sign in to comment.

Answers (2)

Aliyu Abdu
Aliyu Abdu on 3 May 2012
Perhaps the template you're using isn't made for your work... Try modifying it or creating your own template. Here are a few suggestions; use an "image segmentation and extraction" code to crop the letters or characters and store them in a location. Use the appropriate template creation m-file to create the template. You can find these codes at the matlab "File Exchange".

  3 Comments

Shavi
Shavi on 3 May 2012
ya.. i have seen d code posted dere and m using dat code. but tell me how to differentiate between 'C' and 'c' in template matching.. similarly in 'S', 's'. 'V' and 'v' like that..
Means when i am going to match the letter with the template then it is not differentiating between uppercase and lowercase as above stated.
Please guide..
Thanks
Aliyu Abdu
Aliyu Abdu on 3 May 2012
I don't know which of the OCR versions you are using. If you're using the one with both upper & lower case letters then consider replace the small character images in the folder "letters_numbers" with your own, cropped from the same image you're working on. Then run the "create_template" m-file to create your own template.

Sign in to comment.


Andrei Bobrov
Andrei Bobrov on 3 May 2012
use
regexp(yourstring,'\w*')
regexp(yourstring,'[a-z]')

  2 Comments

Shavi
Shavi on 3 May 2012
I am not going to match a regular expression..
I have to match the letters with its corresponding templates..
SO wat is this for?
Walter Roberson
Walter Roberson on 3 May 2012
Shavi, you did not specify that you were using OCR, and you did not specify that you were using an OCR routine that is not provided by Mathworks. http://www.mathworks.com/matlabcentral/answers/36057-how-to-read-special-characters-using-matlab-in-ocr

Sign in to comment.


Translated by