Create ROI around objects and recognize characters in the objects as single word.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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;
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!