-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table_regions #312
Comments
I get the same error. |
im getting this error also scamelot\parsers\stream.py line 289 my code:
|
I know why this is happening. From the traceback, the |
@vinayak-mehta - did you manage to push that fix in the end? |
I remember creating a branch and adding that fix, but it clearly isn't in master or in the PRs. Let me push it today. |
Thanks for the bug report @eldarvagapov! |
table_regions kwarg throws an ValueError: too many values to unpack (expected 4)
tables = camelot.read_pdf('sberbank_statement.pdf', flavor='stream', pages='1-end', table_regions=['168,145,568,740'])
where
168 = Left,
145 = Top
568 = Left + Width
740 = Top + Height
`/anaconda3/lib/python3.7/site-packages/camelot/parsers/stream.py in _generate_table_bbox(self)
287 hor_text = []
288 for region in self.table_regions:
--> 289 x1, y1, x2, y2 = region
290 region_text = text_in_bbox((x1, y2, x2, y1), self.horizontal_text)
291 hor_text.extend(region_text)
ValueError: too many values to unpack (expected 4)`
The text was updated successfully, but these errors were encountered: