Skip to content
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

update master #475

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Dedoc

[![image](https://img.shields.io/pypi/pyversions/dedoc.svg)](https://pypi.python.org/pypi/dedoc)
[![GitHub release](https://img.shields.io/github/release/ispras/dedoc.svg)](https://github.com/ispras/dedoc/releases/)
[![PyPI version](https://badge.fury.io/py/dedoc.svg)](https://badge.fury.io/py/dedoc)
[![PyPI downloads](https://pepy.tech/badge/dedoc)](https://pepy.tech/project/dedoc)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.5
2.2.6
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_contours_cells(img: np.ndarray, table_type: str, *, config: dict) -> [An

def __get_contours_for_table_wo_external_bounds(img: np.ndarray, img_with_contours: np.ndarray, contours: List, hierarchy: List, config: dict) -> [Any, Any]:
# get children (get table counters)
contours = np.array(contours)
contours = np.array(contours, dtype=object)
list_contours, table_contours = __get_table_contours(contours, hierarchy)

filtered_cont_id = []
Expand Down
6 changes: 6 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

v2.2.6 (2024-07-22)
-------------------
Release note: `v2.2.6 <https://github.com/ispras/dedoc/releases/tag/v2.2.6>`_

* Upgrade dependencies: `numpy<2.0` and `dedoc-utils==0.3.7`.

v2.2.5 (2024-07-15)
-------------------
Release note: `v2.2.5 <https://github.com/ispras/dedoc/releases/tag/v2.2.5>`_
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
beautifulsoup4>=4.10.0,<=4.12.2
charset-normalizer>=2.0.12,<=3.2.0
Cython>=0.29.28,<=3.0.2
dedoc-utils==0.3.6
dedoc-utils==0.3.7
fastapi>=0.77.0,<1.0
huggingface-hub>=0.14.1,<1.0
imutils==0.5.4
itsdangerous>=2.1.0,<=2.1.2
numpy>=1.22.0,<=1.22.3
numpy>=1.22.0,<2.0
olefile~=0.46
opencv-python>=4.5.5.64,<4.6.0
orjson>=3.8.11,<4.0
Expand Down
4 changes: 2 additions & 2 deletions tests/api_tests/test_api_doctype_fintoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_article_en(self) -> None:

def test_article_fr(self) -> None:
file_name = "fintoc/prospectus_fr.pdf"
result = self._send_request(file_name, dict(document_type="fintoc", pdf_with_text_layer="true", language="fr"))
result = self._send_request(file_name, dict(document_type="fintoc", pdf_with_text_layer="true", language="fr", need_pdf_table_analysis="false"))

tree = result["content"]["structure"]
self._check_tree_sanity(tree)
Expand All @@ -45,7 +45,7 @@ def test_article_fr(self) -> None:

def test_article_sp(self) -> None:
file_name = "fintoc/prospectus_sp.pdf"
result = self._send_request(file_name, dict(document_type="fintoc", pdf_with_text_layer="true", language="sp"))
result = self._send_request(file_name, dict(document_type="fintoc", pdf_with_text_layer="true", language="sp", need_pdf_table_analysis="false"))

tree = result["content"]["structure"]
self._check_tree_sanity(tree)
Expand Down
Loading