Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 05:59
    LaKenLin commented #303
  • May 17 19:13
    jhalmu commented #286
  • May 17 16:44
    jhalmu commented #286
  • May 17 16:44
    jhalmu commented #286
  • May 17 16:43
    jhalmu commented #286
  • May 17 16:39
    jhalmu commented #286
  • May 17 16:38
    jhalmu commented #286
  • May 16 16:34
    Artyrm labeled #303
  • May 16 16:34
    Artyrm opened #303
  • May 15 20:05
    Artyrm opened #302
  • May 11 15:07
    treflip commented #286
  • May 11 14:51
    SteffRainville commented #157
  • May 10 10:40
    hammad26 edited #301
  • May 10 10:40
    hammad26 edited #301
  • May 10 10:39
    hammad26 opened #301
  • May 09 08:13
    giiyms commented #157
  • May 06 08:16
    maxdd commented #237
  • May 06 08:15
    maxdd commented #237
  • May 05 00:17
    teohsinyee opened #300
  • May 04 07:05
    kenho211 commented #299
nightwarrior-xxx
@nightwarrior-xxx
@vinayak-mehta Can you explain again how does camelot calculate the accuracy? Correct me if I am wrong. Firstly coordinates of pdf tables is calculated then coordinates of each cell is calculated and from each cell after combining we again get the whole tables and from that we calculate the coordinates.
Pravar Agrawal
@pravarag
@vinayak-mehta I was able to run camelot-py with changes to stream.py in reference to following issue: camelot-dev/camelot#88 . Now, while trying to handle exception for no text present in either (xmin, ymin, xmax, ymax) I'm wondering where to have text_bbox defined? Otherwise I'm greeted with (xmin, ymin, xmax, ymax) variable referenced before assignment error. Any suggestions?
Vinayak Mehta
@vinayak-mehta

@vinayak-mehta is pip install camelot-py[dev] same for editable mode?

pip install -e . for editable mode

@nightwarrior-xxx
  1. Calculate table coordinates (which include cell coordinates)
  2. Get list of text boxes from PDF
  3. Assign text box one by one checking overlap with a table cell. More the overlap, better the accuracy.
Vinayak Mehta
@vinayak-mehta
@pravarag Not sure about your questions. Can you point me to the line where you're trying to do this? A simple try..except should do the trick.
Pravar Agrawal
@pravarag
@vinayak-mehta trying to put a try on this line: https://github.com/camelot-dev/camelot/blob/master/camelot/parsers/stream.py#L98 . Once this has been handled, I've put "text_bbox" after the except as of now and that is where I'm getting above mentioned error.
Pravar Agrawal
@pravarag
@vinayak-mehta I've submitted a PR for the same, kindly review and let me know for any changes.
Vinayak Mehta
@vinayak-mehta
I'll check it out today! :)
Pravar Agrawal
@pravarag
Sure
Pravar Agrawal
@pravarag
@vinayak-mehta could you please review my pull request so that I can make further changes if required.
Vinayak Mehta
@vinayak-mehta
Yep I'll check it out today
Vinayak Mehta
@vinayak-mehta
@pravarag This weekend for sure, sorry for the lateness.
Pravar Agrawal
@pravarag
no problem @vinayak-mehta even I'm enjoying festival season :D
Pravar Agrawal
@pravarag
@vinayak-mehta did you check the PR?
abhishekasodaria
@abhishekasodaria
hello
i am trying to install camelot
but showing
cv version
has no matching distribution
@vortex_ape_twitter
abhishekasodaria
@abhishekasodaria
its not working properly
every step somekind of error occurs
Vinayak Mehta
@vinayak-mehta
@pravarag Yes, got busy with something else
@abhishekasodaria Did you follow the steps mentioned in the docs?
Vinayak Mehta
@vinayak-mehta
@pravarag Reviewed the PR, requested some changes. Sorry for the late review on this.
Pravar Agrawal
@pravarag
@vinayak-mehta thanks for the update. I'll go for the requested changes then.
phdkiran
@phdkiran
is there an option to complement strip_text like replace_text?
I am trying to insert a space for a new line during the table detection
Mariano Rodriguez
@marianorodriguez
hello! Can someone explain to me the difference between pip install camelot-pyand pip install camelot-py[cv]? which of those should I install to use Camelot inside a Python script?
Vinayak Mehta
@vinayak-mehta
@phdkiran You can do that in the pandas dataframe itself
@marianorodriguez Please use pip install camelot-py[cv]
Arky
@arky
@vinayak-mehta Trying to adopt excalibur for my workshops in SE. Asia. Is it possible to build executables for easy install for Windows, Mac, Linux both 32bit and 64bit. Perhaps using Pyinstaller or something similar. This would save me lot of time and also drive adoption.
Vinayak Mehta
@vinayak-mehta
Hi @arky did you try the existing Win and Linux (should work on macOS) executables? https://github.com/camelot-dev/excalibur/releases/tag/v0.4.0
Ghostscript still needs to be installed separately for these
Arky
@arky
@vinayak-mehta Sweet I wasn't aware there were already available. I am going to give them a shot.
Vinayak Mehta
@vinayak-mehta
Please let me know if you face any problems. And if you have any ideas for the following issues, please comment. Solving these issues will make installation easy. I haven't been getting time from the day job to work on them.
Arky
@arky
Will do. For starters, I think it much simple to do user education, by providing clear instructions on how to install and where to get them would solve most issues. Perhaps
a wiki page or dedicated web site/page ie. get-camelot.github.io and it has big blue button to get the exe for target OS along with links to dependecies would drive adoption.
slhappyls
@slhappyls
Chinese user is saying hi
1 reply
Arky
@arky
@vinayak-mehta Any update on camelot-dev/excalibur#99
5 replies
@vinayak-mehta These are quite important for wider adoption of the tools in civil socities out here
Arky
@arky
@vinayak-mehta Is this the correct commands to generate the current excalibur executables for gnu/linux and macOS ? "pyi-makespec --paths=excalibur/executors/celery_executor.py arthur.py
pyinstaller --onefile --add-data "excalibur/www/templates:excalibur/www/templates" --add-data "excalibur/www/static:excalibur/www/static" --add-data "excalibur/config_templates:excalibur/config_templates" arthur.py"
Vinayak Mehta
@vinayak-mehta
Arky
@arky
Thanks, Not sure Makefile for mulitple OS's without modification.
13 replies
Arky
@arky
Can someone tell me what's solution for 'No module named click' issue on gnu/Linux. ./excalibur-ubuntu-latest-x64 Traceback (most recent call last): File "arthur.py", line 5, in <module> File "/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module File "excalibur/cli.py", line 5, in <module> ModuleNotFoundError: No module named 'click' [12776] Failed to execute script arthur
Vinayak Mehta
@vinayak-mehta
Oh you'll need to do pip install click for that
1 reply
Arky
@arky
Hey, I have made a usability suggestion to better handle excalibur missing requirements on MS Windows. Looking forward to your feedback camelot-dev/excalibur#111
Arky
@arky
Please download and test the latest exacalibur 0.4.3 https://github.com/camelot-dev/excalibur/releases/tag/v0.4.3
Arky
@arky
@vinayak-mehta I have been trying to test Excalibur with Python 3 (32bit) Windows 7. I got stuck with 'backports' module not found errors. Still trying to figure it out.
Vinayak Mehta
@vinayak-mehta
Can you post the full traceback here?
6 replies
Or in a gist / pastebin