Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

auto rotate landscape documents #47

Closed
polo2ro opened this issue Feb 18, 2016 · 8 comments
Closed

auto rotate landscape documents #47

polo2ro opened this issue Feb 18, 2016 · 8 comments

Comments

@polo2ro
Copy link

polo2ro commented Feb 18, 2016

Hi,
Is it possible to detect document orientation before OCR? I have tried with a landscape document and i got no valid text out of it, i suppose manually rotate the file before consume will fix it but this is a pain for an automated scan to ocr.

https://tesseract-ocr.github.io/a01281.html#ga16c4b28cadc2160bf18b84c3f897a2d2

@pitkley
Copy link
Member

pitkley commented Feb 18, 2016

Yes, the tools we use seem to be able to do that (as you have linked yourself). I'm going to throw something together and test it, and I'll let you know if it works out!

@polo2ro
Copy link
Author

polo2ro commented Feb 18, 2016

cool, thanks!

pitkley added a commit to pitkley/paperless that referenced this issue Feb 18, 2016
@pitkley
Copy link
Member

pitkley commented Feb 18, 2016

Okay, seems like an easy fix. I tested it with a rotated document and it worked a treat.

Are you able to test it from my feature/detect-orientation branch?

@polo2ro
Copy link
Author

polo2ro commented Feb 18, 2016

ok i will test it with my document and get back to you

@polo2ro
Copy link
Author

polo2ro commented Feb 18, 2016

This worked well, god job

@pitkley
Copy link
Member

pitkley commented Feb 18, 2016

Cool, thanks for the confirmation! I'll get a PR going shortly 👍

@pitkley
Copy link
Member

pitkley commented Feb 18, 2016

Just an FYI, I have opened PR #49!

@sirpresage
Copy link

Hi, i installed paperless a few days ago but OCRing landscape documents didn't worked for me. Can you send me a landscape document that works for you so i can identify if it's a config problem on my fresh install ? :)

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

No branches or pull requests

3 participants