Search This Blog

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 Telegram: https://t.me/matlabcastor

No comments

MATLAB