Not getting cell array output?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
Hey there, I need some help.
Why doesn't
data(n,:)
give me a cell as output, but a char?
Thanks
%%Open file
reader=vision.VideoFileReader('myfilename.mp4')
%%Analyze
n=0; %counter
while ~isDone(reader)
n=n+1 ;
I=step(reader);
roi_speed=[1560 200 125 50];
ocrResults_vSpeed=ocr(I, roi_speed);
recognizedText_vSpeed=ocrResults_vSpeed.Text;
data(n,:)=[recognizedText_vSpeed];
end
3 Commenti
John Chilleri
il 1 Mag 2017
Hello,
Looking at the documentation for ocr shows that,
ocrresults.Text is a string and,
ocrresults.Words is a cell.
Did you perhaps mean to use ocrresults.Words?
Hope this helps!
J S
il 1 Mag 2017
John Chilleri
il 1 Mag 2017
Watch out for conversion to double from cell errors and good luck!
Risposte (0)
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!