How can I read text from pdf in Matlab?

조회 수: 7 (최근 30일)
Balkar Singh
Balkar Singh 2020년 4월 25일
댓글: Balkar Singh 2020년 5월 1일
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.

채택된 답변

Walter Roberson
Walter Roberson 2020년 4월 25일
  댓글 수: 7
Walter Roberson
Walter Roberson 2020년 5월 1일
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 2020년 5월 1일
I tried this but not able to find the exact solution. I also tried OCR but it works for a small image.
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by