Skip to content

Commit

Permalink
Merge pull request #253 from sbrunner/better-line-image
Browse files Browse the repository at this point in the history
Better line dev image size
  • Loading branch information
sbrunner authored Aug 26, 2022
2 parents b11c447 + 50865cf commit 93c40d6
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
poetry run python --version
[ "$(python3 --version)" == "$(poetry run python --version)" ]
- run: >
poetry run coverage run --source=deskew --module pytest --durations=0 --verbose --color=yes
--profile --profile-svg --junitxml=results/test-reports/junit.xml tests &&
poetry run coverage report &&
- run: |
poetry run coverage run --source=deskew --module pytest --durations=0 --verbose --color=yes \
--profile --profile-svg --junitxml=results/test-reports/junit.xml tests
poetry run coverage report
poetry run coverage html --directory=results/coverage
- uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion deskew/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def determine_skew_debug_images(
debug_images.append(("hough_transform", cv2.imread(file.name)))

# Detected lines
_, axe = plt.subplots(figsize=(15, 6))
_, axe = plt.subplots(figsize=(image.shape[0] / 100, image.shape[1] / 100))

axe.imshow(image, cmap=cm.gray)
axe.set_ylim((image.shape[0], 0))
Expand Down
Binary file modified tests/debug-images-detected_lines-90-many-peaks.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines-90-min-max.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines-90.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines-many-peaks.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines-min-max-inverted.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines-min-max-negative.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines-min-max-positive.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines-min-max.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/debug-images-detected_lines.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 93c40d6

Please sign in to comment.