camelot icon indicating copy to clipboard operation
camelot copied to clipboard

Dark tables not detected.

Open Semnodime opened this issue 3 years ago • 2 comments

Describe the bug

  • Not all tables are detected.
  • While three bright tables have been detected, two similar but dark tables haven't.

Steps to reproduce the bug

  1. Install via pipenv install excalibur-py
  2. Run camelot lattice -plot contour 19_extracted_A7325-AMICCOM.pdf

Expected behavior

  • Detection of all five tables.

PDF

Screenshots image

Environment

  • OS: Linux Mint 20
  • Python version: 3.8
  • Numpy version: ?
  • OpenCV version: ?
  • Ghostscript version: 9.50
  • Camelot version: 0.8.2

Additional context My personal guess is that the dark grey tone of the table interferes with it's detection.

Semnodime avatar Sep 28 '20 06:09 Semnodime

Can you try with this setting: https://camelot-py.readthedocs.io/en/master/user/advanced.html#detect-short-lines?

vinayak-mehta avatar Oct 01 '20 20:10 vinayak-mehta

@vinayak-mehta @Semnodime

I have tried this problem myself and can confirm that the above documentation makes all five tables detected:

camelot lattice -scale 40 -plot contour 19_extracted_A7325-AMICCOM.pdf

lahdjirayhan avatar Jun 24 '22 07:06 lahdjirayhan