Create ROI around objects and recognize characters in the objects as single word.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
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!