Commit Graph

511 Commits (ae429fc248d7acf9315e407abbde9f0f36156311)

Author SHA1 Message Date
Vinayak Mehta e7835cac33
Merge pull request #206 from socialcopsdev/stream-nurminen-detection
[MRG] Add implementation of Anssi Nurminen's table detection algorithm
2018-11-23 21:35:03 +05:30
Vinayak Mehta 23ec6b55f7 Add docstrings and update docs 2018-11-23 21:04:10 +05:30
Vinayak Mehta 1f71513004 Fix no table found warning and add tests for two tables 2018-11-23 19:28:55 +05:30
Vinayak Mehta bf894116d2 Update test data 2018-11-23 04:25:04 +05:30
Vinayak Mehta 0251422e33 Add fix to include table headers 2018-11-23 03:27:23 +05:30
Vinayak Mehta a1e1fd781d Fix comments 2018-11-23 02:51:22 +05:30
Vinayak Mehta 9b67b271e4 Add atol and fix variable declaration 2018-11-23 02:44:55 +05:30
Vinayak Mehta 9b5782f9ba Fix indent 2018-11-22 20:05:30 +05:30
Vinayak Mehta bcde67fe17 Add constant to include table headers 2018-11-22 19:56:16 +05:30
Vinayak Mehta 529914eb6f Update comment 2018-11-22 19:50:59 +05:30
Vinayak Mehta 4e2aee18c3 Add get_table_areas textedges method 2018-11-22 19:48:51 +05:30
Vinayak Mehta a587ea3782 Add get_relevant textedges method 2018-11-22 18:24:31 +05:30
Vinayak Mehta 378408a271 Remove debug statements 2018-11-22 05:42:10 +05:30
Vinayak Mehta 123227aa8c Add TextEdge and TextEdges helper classes 2018-11-22 05:31:02 +05:30
Vinayak Mehta cd3aa38f7e
Change table to grid (#196) 2018-11-06 19:18:45 +05:30
Vinayak Mehta b310f16dba Bump version and update HISTORY.md 2018-11-04 01:37:27 +05:30
Vinayak Mehta defaead679
Add table bbox attribute (#193) 2018-11-04 01:33:41 +05:30
Palash Chatterjee a60ce38d4d [MRG + 1] Fix the order of coordinates in docs (#191) 2018-11-03 01:06:44 +05:30
Vinayak Mehta 36006cadc5 Bump version and update HISTORY.md 2018-11-02 23:25:07 +05:30
Vinayak Mehta db3f8c6897
[MRG] Make matplotlib optional (#190)
* Rename png files

* Convert plot to PlotMethods class and update docs

* Update test

* Update setup.py and docs

* Refactor PlotMethods

* Make matplotlib optional

* Raise ImportError in cli
2018-11-02 23:16:03 +05:30
Suyash Behera c0e9235164 [MRG + 1] Create a new figure and test each plot type #127 (#179)
* [MRG] Create a new figure and test each plot type #127

 - move `plot()` to `plotting.py` as `plot_pdf()`
 - modify plotting functions to return matplotlib figures
 - add `test_plotting.py` and baseline images
 - import `plot_pdf()` in `__init__`
 - update `cli.py` to use `plot_pdf()`
 - update advanced usage docs to reflect changes

* Change matplotlib backend for image comparison tests

* Update plotting and tests
 - use matplotlib rectangle instead of `cv2.rectangle` in
`plot_contour()`
 - set matplotlib backend in `tests/__init__`
 - update contour plot baseline image
 - update `test_plotting` with more checks

* Update plot tests and config
 - remove unnecessary asserts
 - update setup.cfg and makefile with `--mpl`

* Add  to

* Add tolerance

* remove text from baseline plots
update plot tests with `remove_text`

* Change method name, update docs and add pep8

* Update docs
2018-11-02 20:57:02 +05:30
Vinayak Mehta 79db6e3d1b Add gitter badge 2018-10-31 17:33:40 +05:30
Vinayak Mehta 29f22ad1a6 Update conda definition 2018-10-30 23:48:56 +05:30
Vinayak Mehta e8af4c2c1c Update conda install instructions 2018-10-30 23:36:31 +05:30
Vinayak Mehta 220d6ad29c Fix cli doc 2018-10-29 01:03:36 +05:30
Vinayak Mehta f73062c1c4 Bump version
Update HISTORY.md
2018-10-28 22:37:33 +05:30
Vinayak Mehta 9cffe0adbe Update HISTORY.md
Update HISTORY.md

Update HISTORY.md again
2018-10-28 22:12:47 +05:30
rbares 429640feea [MRG + 1] Add basic support for encrypted PDF files (#180)
* [MRG] Add basic support for encrypted PDF files

Update API and CLI to accept ASCII passwords to decrypt PDFs
encrypted by algorithm code 1 or 2 (limited by support from PyPDF2).
Update documentation and unit tests accordingly.

Example document health_protected.pdf generated as follows:
qpdf --encrypt userpass ownerpass 128 -- health.pdf health_protected.pdf

Issue #162

* Support encrypted PDF files in python3

Issue #162

* Address review comments

Explicitly check passwords for None rather than falsey.
Correct read_pdf documentation for Owner/User password.

Issue #162

* Correct API documentation changes for consistency

Issue #162

* Move error tests from test_common to test_errors

Issue #162

* Add qpdf example

* Remove password is not None check

* Fix merge conflict

* Fix pages example
2018-10-28 22:01:10 +05:30
gison93 4366313484 Clarify example for argument pages in read_pdf (#177) 2018-10-28 14:41:04 +05:30
Vinayak Mehta 2830ed9418 Update HISTORY.md 2018-10-25 00:07:16 +05:30
Vinicius Mesel 39cf65ffef [MRG + 1] Convert filename to lowercase to check for extension (#169)
* Creates a new variable that stores a lowercase version of the filename

* Remove variable
2018-10-24 23:53:54 +05:30
Parth P Panchal 32df09ad1c Renames the keyword `table_area` to `table_areas` (#171)
`table_areas` sounds more apt since it is a list and there can be
multiple table areas on a page.

Closes #165
2018-10-24 23:06:53 +05:30
Vinayak Mehta 8205e0e9ab Update HISTORY.md 2018-10-23 21:16:18 +05:30
Vinayak Mehta a78ef7f841
[MRG] Use find_executable for gs and raise error if not found (#166)
* Use find_executable for gs and raise error if not found

* Remove unused variable

* Add test

* Use pytest monkeypatch
2018-10-23 21:12:43 +05:30
Vinayak Mehta f734af3a0b Update HISTORY.md 2018-10-23 15:04:54 +05:30
Parth P Panchal 61963aabb6 [MRG + 1] Add __main__ (#159)
* Renames camelot.cli to camelot.__main__

Closes #154

* Keep __main__ and cli separate

* Monkey patch click HelpFormatter
2018-10-23 15:01:20 +05:30
Jonathan Lloyd 60c1270745 Fix typo in test name (#160)
test_no_tables_found_warnings_supressed -> test_no_tables_found_warnings_suppressed
2018-10-23 04:54:57 +05:30
Vinayak Mehta 72481bc1b5 Replace table_areas with table_area 2018-10-23 04:00:17 +05:30
Vinayak Mehta c5c85a2dc8 Fix index.rst 2018-10-22 21:58:51 +05:30
Vinayak Mehta 9c6ec49652 Update index.rst 2018-10-22 21:53:38 +05:30
Vinayak Mehta 2a60d1fd54 Update README 2018-10-22 21:52:49 +05:30
Vinayak Mehta 2022a8abc9 Update HISTORY.md 2018-10-19 17:00:20 +05:30
Jonathan Lloyd 3def4a5aea [MRG + 1] Add suppress_warnings flag (#155)
* Add suppress_warnings flag

* Add --quiet flag to cli (to suppress warnings)

* Remove TODO and update comment
2018-10-19 16:55:00 +05:30
Vinayak Mehta 1d064adc3e Update .editorconfig and HISTORY.md 2018-10-19 16:23:15 +05:30
KOLANICH 7baea06bca Add .editorconfig (#151) 2018-10-19 16:19:06 +05:30
Vinayak Mehta 5645ef5b62
Update setup.py 2018-10-15 04:31:54 +05:30
Krishna Sumanth 7a3b76cb76
Update conf.py 2018-10-12 21:39:38 +05:30
Krishna Sumanth 970f906435
Update conf.py 2018-10-12 21:37:53 +05:30
Krishna Sumanth 297888b18c
Update conf.py 2018-10-12 20:22:02 +05:30
Vinayak Mehta 9362175a82
Update advanced.rst 2018-10-12 16:46:09 +05:30