Create ROI around objects and recognize characters in the objects as single word.

1 vue (au cours des 30 derniers jours)
Jack Smith
Jack Smith le 27 Mar 2015
Modifié(e) : Jack Smith le 27 Mar 2015
Hi, I have an image that contains characters to be recognized. I have drawn rectangle around label objects in the image and I want to create boundingBoxes and ROI around the label objects so that OCR() can be used to detect all the characters in the objects as single text word . For eg, if a ROI is drawn around 'C in' around which rectangle is drawn, then ocr() function should return the same, that is 'C in' as a single word (with character spacing) .
Please see the image below and provide code to achieve it.
I used the code below to draw lines to draw lines around labels in 'image' .
image(x1:x1+width,y1) = 1;
image(x1:x1+width,y1+height) = 1;
image(x1,y1:y1+height) =1;
image(x1+width,y1:y1+height) = 1;

Réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by