how to extract data from table image?

8 visualizaciones (últimos 30 días)
Meera V
Meera V el 8 de En. de 2019
Comentada: Image Analyst el 11 de Mzo. de 2023
  4 comentarios
Walter Roberson
Walter Roberson el 9 de En. de 2019
Train the ocr on that character set.
The images are pretty low quality.
Benjamin Ehrlich
Benjamin Ehrlich el 18 de Ag. de 2021
I have experienced the OCR having a really rough time with vertical and horizontal lines...

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 19 de Ag. de 2021
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 comentarios
Abdelrahman
Abdelrahman el 11 de Mzo. de 2023
Editada: Abdelrahman el 11 de Mzo. de 2023
Can you elaborate more how to get rid of the lines please?
Image Analyst
Image Analyst el 11 de Mzo. de 2023
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);

Iniciar sesión para comentar.

Categorías

Más información sobre Recognition, Object Detection, and Semantic Segmentation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by