Skip to content

Commit 93c40d6

Browse files
authored
Merge pull request #253 from sbrunner/better-line-image
Better line dev image size
2 parents b11c447 + 50865cf commit 93c40d6

14 files changed

+5
-5
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
poetry run python --version
5050
[ "$(python3 --version)" == "$(poetry run python --version)" ]
5151
52-
- run: >
53-
poetry run coverage run --source=deskew --module pytest --durations=0 --verbose --color=yes
54-
--profile --profile-svg --junitxml=results/test-reports/junit.xml tests &&
55-
poetry run coverage report &&
52+
- run: |
53+
poetry run coverage run --source=deskew --module pytest --durations=0 --verbose --color=yes \
54+
--profile --profile-svg --junitxml=results/test-reports/junit.xml tests
55+
poetry run coverage report
5656
poetry run coverage html --directory=results/coverage
5757
5858
- uses: actions/upload-artifact@v3

deskew/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def determine_skew_debug_images(
204204
debug_images.append(("hough_transform", cv2.imread(file.name)))
205205

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

209209
axe.imshow(image, cmap=cm.gray)
210210
axe.set_ylim((image.shape[0], 0))
1.01 MB
Loading
545 KB
Loading
545 KB
Loading
545 KB
Loading
542 KB
Loading
542 KB
Loading
1 MB
Loading
545 KB
Loading

0 commit comments

Comments
 (0)