8000 Detect skew angle only (no rotation done) · Issue #5 · galfar/deskew · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Detect skew angle only (no rotation done) #5
Closed
@galfar

Description

@galfar

Original report by Marek Mauder (Bitbucket: galfar, GitHub: galfar).


As requested on blog:

Can you explain how to simply find the angle but not rotate using this tool? Since I’m dealing with archival TIFFs I need to keep the DPI and embedded metadata in place, so I’m thinking I would use ImageMagick to rotate once I have the angle. Thanks.

Answer:

For now you could use -l parameter:
-l angle: Skip deskewing step if skew angle is smaller
And use some large threshold so rotation will always be skipped.

$deskew -l 80 Sken003.png
...
Preparing input image (Sken003.png) ...
Calculating skew angle...
Skew angle found: 0.23
Skipping deskewing step, skew angle lower than threshold of 80.00
Done!

For next version I plan to modify this: angle is optional and if omitted rotation is always skipped.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0