Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d0cc0f3

Browse files
Update README.md
1 parent 711d226 commit d0cc0f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Note: This functionality requires Deep Learning Toolbox™ and the Computer
3838
bboxes = detectTextCRAFT(orgImg);
3939
4040
% Visualize results
41-
outImg = insertShape(I,"rectangle",bboxes,LineWidth=3);
41+
outImg = insertShape(orgImg,"rectangle",bboxes,LineWidth=3);
4242
figure; imshow(outImg);
4343
```
4444

@@ -56,7 +56,7 @@ Output of `detectTextCRAFT` return the bounding boxes that can be passed to `ocr
5656
figure; imshow(BW);
5757
5858
% OCR this image using region-of-interest for OCR to avoid processing non-text background.
59-
txt = ocr(BW,roi,'LayoutAnalysis','word');
59+
txt = ocr(BW,bboxes,'LayoutAnalysis','word');
6060
6161
% Display the recognized words.
6262
recognizedWords = cat(1,txt(:).Words);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /