Create ROI around objects and recognize characters in the objects as single word.
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!