camelot-dev / camelot-dev/camelot
two single row tables in two separate pdfs don't bet read by camelot as tables
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 546
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 3
Description
Windows-10-10.0.19043-SP0
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]
NumPy 1.21.2
OpenCV 4.5.3
Camelot 0.10.1
**Describe the bug**
2 of 55 pdfs with K-12 education table data have one row tables that don't process as tables.
https://www.dpi.nc.gov/media/8350/open
https://www.dpi.nc.gov/media/8325/open
It doesn't find a table, likely related to one row entry.
**Steps to reproduce the bug**
ran:
tables = camelot.read_pdf(weburl, pages='all')
where weburl is set to the above two urls in a loop.
**Expected behavior**
Should have one row table output for these two separate 1 page pdfs.
**Code**
tables = camelot.read_pdf(weburl, pages='all')
```
import camelot
# add your code here
```
**PDF**
https://www.dpi.nc.gov/media/8350/open
https://www.dpi.nc.gov/media/8325/open
**Screenshots**
**Environment**
- OS: [e.g. macOS]
- Python version:
- Numpy version:
- OpenCV version:
- Ghostscript version:
- Camelot version:
Windows-10-10.0.19043-SP0
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]
NumPy 1.21.2
OpenCV 4.5.3
Camelot 0.10.1
**Additional context**
there are 55 educator prep urls being cycled through in a loop.
These two failed to produce tables, and I bet it's related to only have one row entry after headers or something.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with camelot.read_pdf(weburl, pages='all') using the two linked North Carolina PDF URLs and the reported Python, NumPy, OpenCV, and Camelot versions. Compare these one-page, single-row documents with the other 53 educator-preparation PDFs to identify why no table is returned. Done means both PDFs produce the expected one-row table output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- opencv, python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100