OCR code for complex Background

3 visualizzazioni (ultimi 30 giorni)
msp
msp il 15 Apr 2013
Commentato: John D'Errico il 19 Ago 2023
hello , i have done OCR code for simple background image. It can detect all small ,capital and number for simple image only. I want source code in matlab for complex background and for all fonts please help Me out please.

Risposte (1)

Kayemba Luwaga
Kayemba Luwaga il 19 Ago 2023
You can try this,
im = imread(listing(i).name);
% imshow(im)
I = imadjust(im,[.1 .1 .1; 1 1 1],[]);
% Crop image, specifying crop rectangle.
I2 = imcrop(I,[105 108 880 1252]);
% OCR
ocrResults = ocr(I2);
recognizedText = ocrResults.Text;
% d = winopen('exampleTemplate.docx');
append(d, recognizedText);
append(d, PageBreak());
  1 Commento
John D'Errico
John D'Errico il 19 Ago 2023
Note this question was asked over 10 years ago. So if the asker was at all urgently interested in a soution (which it seems they might have been), then this answer may be slightly too late to be useful. :-)

Accedi per commentare.

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by