loading multiple languages for ocr

I am trying to load multiple languages as a cell array of strings: txt = ocr(bw, 'Language', ... {'U:\CLU_Project\_resources\tessdata\ara.traineddata', ... 'U:\CLU_Project\_resources\tessdata\eng.traineddata'});
But I got error message saying "index exceeds the matrix dimensions." The code works for individual traineddata. I am using Matlab R2014b version. Please help me... Thank you very much in advance.

1 comentario

Sam McDonald
Sam McDonald el 19 de Abr. de 2017
That error message seems unrelated to your code changes in order to load multiple languages. Where in your code does the error occur? The error message should point you to the line of code or function that causes the "index exceeds the matrix dimensions" error. Is it within the "ocr" function or elsewhere?
Does either ara.traineddata or eng.trainddata work individually? Is it only when both are within the cell array that you get this error?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Etiquetas

Preguntada:

el 17 de Abr. de 2017

Comentada:

el 19 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!