How can I read text from pdf in Matlab? I tried this code
a=OCR(unit8(test.pdf);
After the execution of the above code value of a is empty.
There is any other option which one I can use.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Apr. 2020

0 Stimmen

7 Kommentare

Balkar Singh
Balkar Singh am 26 Apr. 2020
Thanks sir
Balkar Singh
Balkar Singh am 26 Apr. 2020
Sir how can I modify the text after reading from pdf file. Thanks in advance.
Balkar Singh
Balkar Singh am 27 Apr. 2020
Thanks sir..
Balkar Singh
Balkar Singh am 1 Mai 2020
Sir it is not working for png, jpeg etc image. There is any other option in Matlab to read text from these types of images.
Thanks
Walter Roberson
Walter Roberson am 1 Mai 2020
the image file itself is gone, converted to pixel representation.
https://www.mathworks.com/matlabcentral/answers/436679-how-to-read-an-image-into-matlab-stored-as-pdf#comment_654452
It is probably easier to invoke external software to extract the images. Once you have the images you can ocr them. http://www.peteryu.ca/tutorials/publishing/pdf_manipulation_tips2
Balkar Singh
Balkar Singh am 1 Mai 2020
I tried this but not able to find the exact solution. I also tried OCR but it works for a small image.
Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by