undefined function or method 'ocr' for input arguments of type 'unit8'

1 vue (au cours des 30 derniers jours)
kishore kumar
kishore kumar le 23 Mai 2014
Commenté : kishore kumar le 26 Mai 2014
I am trying to recognize a letter inside the image, I read a .png file and wrote the code as
ocrResults=ocr(im,roi);
i got the error as follows undefined function or method 'ocr' for input arguments of type 'unit8' how could i fix the problem
  2 commentaires
John D'Errico
John D'Errico le 23 Mai 2014
You MIGHT get that error for uint8 arguments. unit8 arguments are something that will be more difficult to solve.
Sean de Wolski
Sean de Wolski le 23 Mai 2014
@John, probably the individual typo that I've made the most.

Connectez-vous pour commenter.

Réponses (2)

Sean de Wolski
Sean de Wolski le 23 Mai 2014
ocr was released in the Computer Vision System Toolbox in R2014a so if you are on an older release or don't have CVST, you will have to upgrade.

Azzi Abdelmalek
Azzi Abdelmalek le 23 Mai 2014
Modifié(e) : Azzi Abdelmalek le 23 Mai 2014
Try
ocrResults=ocr(double(im),roi);
  1 commentaire
kishore kumar
kishore kumar le 26 Mai 2014
i tried that one, i got the same error but instead unit8 i got double.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Text Analytics Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by