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
  How to use switch/case in python? newbieguy 9 308 Nov-08-2019, 11:35 AM
Last Post: newbieguy
  Raycasting GPS coordinates drybulkfreight 10 592 Aug-18-2019, 02:54 PM
Last Post: drybulkfreight
  What area unit the opposite ways in which to understand if an inventory in Python is Smhbugra 2 327 May-27-2019, 07:55 PM
Last Post: Larz60+
  How to write switch case statement in Python pyhelp 9 1,890 Nov-11-2018, 08:53 PM
Last Post: woooee
  How do I get coordinates for addresses from the csv list? BigD 6 2,125 Dec-02-2017, 09:38 PM
Last Post: BigD

Forum Jump:

Users browsing this thread: 1 Guest(s)