Skip to content

Commit

Permalink
Merge pull request #369 from sbrunner/renovate/scikit-image
Browse files Browse the repository at this point in the history
Update dependency scikit-image to v0.20.0
  • Loading branch information
sbrunner authored Mar 7, 2023
2 parents c8d1992 + f1ff0ea commit 044e2ab
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 41 deletions.
132 changes: 93 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ deskew = "deskew.cli:main"
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
numpy = "1.24.2"
scikit-image = "0.19.3"
scikit-image = "0.20.0"
opencv-python-headless = { version = "4.7.0.72", optional = true }
matplotlib = { version = "3.7.0", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion tests/test_deskew.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def check_image(root_folder, image, name, level=1.0):
def image_diff(image1: NpNdarrayInt, image2: NpNdarrayInt) -> Tuple[float, NpNdarrayInt]:
"""Do a diff between images."""

score, diff = structural_similarity(image1, image2, multichannel=True, full=True)
score, diff = structural_similarity(image1, image2, multichannel=True, full=True, channel_axis=2)
diff = (255 - diff * 255).astype("uint8")
return score, diff

Expand Down

0 comments on commit 044e2ab

Please sign in to comment.