I am getting several error messages for my insertObjectAnnotation line of code and I was wondering what is wrong with it.
I am building a code that takes an image, scans it for words, and highlights the text I am scanning for.
global imaget;
ocrResults = ocr(imaget);
words = {ocrResults.Words};
searchWords = {‘Urgent’, ‘Important’, ‘Action required’, ‘Secured Document’};
fprintf(ocrResults.Text);
highlightedImage = insertObjectAnnotation(imaget, ‘rectangle’, ocrResults.WordBoundingBoxes, words);
imshow(highlightedImage, ‘Parent’, app.UIAxes);I am building a code that takes an image, scans it for words, and highlights the text I am scanning for.
global imaget;
ocrResults = ocr(imaget);
words = {ocrResults.Words};
searchWords = {‘Urgent’, ‘Important’, ‘Action required’, ‘Secured Document’};
fprintf(ocrResults.Text);
highlightedImage = insertObjectAnnotation(imaget, ‘rectangle’, ocrResults.WordBoundingBoxes, words);
imshow(highlightedImage, ‘Parent’, app.UIAxes); I am building a code that takes an image, scans it for words, and highlights the text I am scanning for.
global imaget;
ocrResults = ocr(imaget);
words = {ocrResults.Words};
searchWords = {‘Urgent’, ‘Important’, ‘Action required’, ‘Secured Document’};
fprintf(ocrResults.Text);
highlightedImage = insertObjectAnnotation(imaget, ‘rectangle’, ocrResults.WordBoundingBoxes, words);
imshow(highlightedImage, ‘Parent’, app.UIAxes); error, object annotation, ocr MATLAB Answers — New Questions