how to extract data from table image?

댓글 수: 4

Walter Roberson
Walter Roberson 2019년 1월 8일
ocr()
Meera V
Meera V 2019년 1월 9일
I performed ocr. it didnt extract properly
Walter Roberson
Walter Roberson 2019년 1월 9일
Train the ocr on that character set.
The images are pretty low quality.
Benjamin Ehrlich
Benjamin Ehrlich 2021년 8월 18일
I have experienced the OCR having a really rough time with vertical and horizontal lines...

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

답변 (1개)

Image Analyst
Image Analyst 2021년 8월 19일

0 개 추천

You need to have at least 20 lines in the numbers for ocr() to work -- it says so in the help. Also, you can get rid of lines by thresholding and removing the largest blob, but you might want to use them to extract each rectangle one at a time so you can do ocr on just that one rectangle. If you still need help, attach a higher resolution image

댓글 수: 2

Abdelrahman
Abdelrahman 2023년 3월 11일
편집: Abdelrahman 2023년 3월 11일
Can you elaborate more how to get rid of the lines please?
If the lines are connected to the edge of the image you can do
mask = grayImage > somethreshold;
mask = imclearborder(mask);
otherwise, the grid looks like it would be the biggest blob in the mask you can use bwareafilt
mask = mask & ~bwareafilt(mask, 1);

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

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2019년 1월 8일

댓글:

2023년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by