Skip to content

Commit

Permalink
fix mistakes and names
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Shevtsov committed Oct 2, 2023
1 parent 7cd42c2 commit f1ee54d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docs/source/modules/data_structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ Helper classes
.. autoclass:: dedoc.data_structures.Serializable
:members:

.. autoclass:: dedocutils.data_structures.BBox
:special-members: __init__
:exclude-members: to_dict
:members:

.. autoattribute:: x_top_left
.. autoattribute:: y_top_left
.. autoattribute:: x_bottom_right
.. autoattribute:: y_bottom_right
.. autoattribute:: width
.. autoattribute:: height

.. autoclass:: dedoc.data_structures.AttachedFile
:special-members: __init__
:members:

Annotations of the text lines
-----------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_format_pdf_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _split_lines_on_pages(self, lines: List[LineWithMeta]) -> List[List[str]]:

return lines_by_page

def test_scan_rotator(self) -> None:
def test_skew_corrector(self) -> None:
skew_corrector = SkewCorrector()
imgs_path = [f"../data/skew_corrector/rotated_{i}.jpg" for i in range(1, 5)]
angles = [0.061732858955328755, -0.017535263190370427, 0.12228411148417097, 0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dedocutils.preprocessing import SkewCorrector


class TestScanRotator(unittest.TestCase):
class TestSkewCorrector(unittest.TestCase):
skew_corrector = SkewCorrector()

def _get_abs_path(self, file_name: str) -> str:
Expand Down

0 comments on commit f1ee54d

Please sign in to comment.