Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to switch table area coordinates in Python Camelot and Tabula-Py
Dear All,

I have obtained the coordinates of a table bounding box using Camelot, but I need to use tabula-py to extract the table data, as camelot is only extracting the first line in each table cell, even in lattice mode. I have noticed that when defining the same table region in tabula-py, 2 of the resulting coordinates are largely different form the camelot values (shown in the code sample below). Whilst the 2nd and 4th values in tabula are similar to 1st and third values in camelot, the others are largely different, how can I translate these readings from the camelot values please? I have been trying to use proportion, and to add and subtract values but all were in vain...

df= tabula.read_pdf(pdf_path, lattice=True, area=(71, 627, 325, 1160), pages=page)

#but camelot coordinate values from bounding box are: 631, 518, 1154, 765

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Matplotlib contour no data coordinates b4rtt 1 161 Jun-18-2019, 09:36 AM
Last Post: b4rtt
  Tracing a multiplication table w/ Python trace() NationalRex22 0 88 Jun-11-2019, 03:31 AM
Last Post: NationalRex22
  What area unit the opposite ways in which to understand if an inventory in Python is Smhbugra 2 217 May-27-2019, 07:55 PM
Last Post: Larz60+
  How to get mouse coordinates on click and release OhNoSegFaultAgain 1 142 May-17-2019, 06:56 PM
Last Post: buran
  How to extrac a data table from Pdf document using Python Amit0503 1 243 May-15-2019, 05:38 AM
Last Post: Larz60+
  New to Python, please help with checking Azure SQL DB for a table TommyAutomagically 4 192 Apr-25-2019, 08:35 PM
Last Post: Gribouillis
  Check fast similarity between gps coordinates dervast 0 158 Apr-08-2019, 07:27 PM
Last Post: dervast
  Transposing Table salihozturk 3 269 Mar-03-2019, 06:55 PM
Last Post: salihozturk
  switch limitations MuntyScruntfundle 3 236 Jan-27-2019, 06:11 PM
Last Post: aakashjha001
  times table aocii 3 470 Dec-26-2018, 01:30 PM
Last Post: metulburr

Forum Jump:

Users browsing this thread: 1 Guest(s)