Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The deskew option is not working/having any effect on the output file #1464

Open
gordonBimig opened this issue Jan 26, 2025 · 1 comment
Open

Comments

@gordonBimig
Copy link

gordonBimig commented Jan 26, 2025

What am I doing wrong?

Command: ocrmypdf --deskew C:\temp\2Q9I8F.jpg C:\temp\test.pdf

I've read that deskew only works if there is no text.

deskew will not run on a PDF that contains text. If the PDF contains text we exit with an error.

However I tried with a PDF which does not have text, still the option deskew shows no effect.
I tried different tilt angles from settle (5-10°) to extreme like 45° ... both results remain skewed.

Even when using an image as input file (tried jpg and tif), the result remains skewed.

I tried with different files, all are not working. So I guess it is not file specific, hoewever I've added an example.

Image

Result:

2Q9I8F.pdf

I cannot spot any error during processing.
When using the verbose parameter, the output states: Deskew angle: 0.000

So the scew angle isn't determined correctly or determined at all.
What can I do to further investigate this issue?

Thanks in advance.

@jbarlow83
Copy link
Collaborator

Try --tesseract-thresholding sauvola

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants