How to get rid o such type of errors "Undefined function 'ocr' for input arguments of type 'uint8'".

2 views (last 30 days)
businessCard = imread('engineer.png');
ocrResults = ocr(businessCard);
recognizedText = ocrResults.Text;
figure;
imshow(businessCard);
text(600, 150, recognizedText, 'BackgroundColor', [1 1 1]);
  1 Comment
C.J. Harris
C.J. Harris on 2 Dec 2014
I'd suggest you define a function called 'ocr' for input arguments of type 'unit8'.
We can't help you without knowledge of the ocr function.

Sign in to comment.

Answers (1)

Geoff Hayes
Geoff Hayes on 2 Dec 2014
The function ocr is part of the Computer Vision System Toolbox. In the Command Window type
ver
to see your version of MATLAB and all installed toolboxes. Or, in the Command Window, type
which ocr -all
to find the location of this function. If you don't have it or the toolbox, then you will need to purchase the latter.

Categories

Find more on Computer Vision Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!