I am trying to use OCR of MATLAB for character recognition.This is what I am doing-
I=imread('ocr.jpg');
imshow(I);title('Original Image');
results = ocr(I);
word = results.Text
This is the image ocr.jpg
But this is the output I get-
word =
Basically it is not able to recognize the character F
.
This is the link which I followed-
http://in.mathworks.com/help/vision/examples/recognize-text-using-optical-character-recognition-ocr.html
Because the image only contains a single character and the text is not formatted in a typical page format (dual column, single column, etc), you'll have to set the 'TextLayout' parameter to 'Word', and provide an input ROI:
I used IMRECT to manually get the ROI around the "F", but you can use REGIONPROPS or vision.BlobAnalysis to automatically get the ROI around the character if your images are all black and white like the one you posted.