Skip to content

Commit d67e6ef

Browse files
authored
update master (#475)
1 parent 8a2678c commit d67e6ef

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Dedoc
22

3+
[![image](https://img.shields.io/pypi/pyversions/dedoc.svg)](https://pypi.python.org/pypi/dedoc)
34
[![GitHub release](https://img.shields.io/github/release/ispras/dedoc.svg)](https://github.com/ispras/dedoc/releases/)
45
[![PyPI version](https://badge.fury.io/py/dedoc.svg)](https://badge.fury.io/py/dedoc)
56
[![PyPI downloads](https://pepy.tech/badge/dedoc)](https://pepy.tech/project/dedoc)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.5
1+
2.2.6

dedoc/readers/pdf_reader/pdf_image_reader/table_recognizer/table_utils/img_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def get_contours_cells(img: np.ndarray, table_type: str, *, config: dict) -> [An
117117

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

123123
filtered_cont_id = []

docs/source/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
v2.2.6 (2024-07-22)
5+
-------------------
6+
Release note: `v2.2.6 <https://github.com/ispras/dedoc/releases/tag/v2.2.6>`_
7+
8+
* Upgrade dependencies: `numpy<2.0` and `dedoc-utils==0.3.7`.
9+
410
v2.2.5 (2024-07-15)
511
-------------------
612
Release note: `v2.2.5 <https://github.com/ispras/dedoc/releases/tag/v2.2.5>`_

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
beautifulsoup4>=4.10.0,<=4.12.2
22
charset-normalizer>=2.0.12,<=3.2.0
33
Cython>=0.29.28,<=3.0.2
4-
dedoc-utils==0.3.6
4+
dedoc-utils==0.3.7
55
fastapi>=0.77.0,<1.0
66
huggingface-hub>=0.14.1,<1.0
77
imutils==0.5.4
88
itsdangerous>=2.1.0,<=2.1.2
9-
numpy>=1.22.0,<=1.22.3
9+
numpy>=1.22.0,<2.0
1010
olefile~=0.46
1111
opencv-python>=4.5.5.64,<4.6.0
1212
orjson>=3.8.11,<4.0

tests/api_tests/test_api_doctype_fintoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_article_en(self) -> None:
2525

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

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

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

5050
tree = result["content"]["structure"]
5151
self._check_tree_sanity(tree)

0 commit comments

Comments
 (0)