We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 044e2ab + 5974ad0 commit a5136d5Copy full SHA for a5136d5
deskew/cli.py
@@ -24,7 +24,7 @@ def main() -> None:
24
options = parser.parse_args()
25
26
image = io.imread(options.input)
27
- grayscale = image if len(image) == 2 else rgb2gray(image)
+ grayscale = image if len(image.shape) == 2 else rgb2gray(image)
28
angle = determine_skew(grayscale, sigma=options.sigma, num_peaks=options.num_peaks)
29
if options.output is None:
30
print(f"Estimated angle: {angle}")
0 commit comments