MATLAB Program to find text from an Image
Code:
clc
clear all
close all
x = input('What would you want to detect:','s');
str = x;
Samplepicture = imread('text.jpg');
ocrResults = ocr(Samplepicture);
bboxes = locateText(ocrResults, str, 'IgnoreCase', true);
Iocr = insertShape(Samplepicture, 'FilledRectangle', bboxes);
figure; imshow(Iocr);
Join us on Facebook Group:
https://www.facebook.com/groups/matlabcodes
No comments