You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, after trying this out, it seems to be a stupid idea. This relies on orientation attributes being present in the file, but if they are not there, auto orient doesn't really help.
Still, it would be nice to have some kind of an auto-orientation solution, instead of relying on all images being presented in the same orientation.
This is over a year old, but what about doing a basic text recognition on the image, rotating it 90 degrees and doing again until the receipt has been scanned in all 4 orientations, then just take whichever orientation had the highest recognized words?
If this sounds like a reasonable enough solution I'd be happy to look into implementing it.
The runtime would be four times as long. Don't think it's a deal breaker, but it's something to be aware of.
The text recognition might be false positives because the date- and price recognition are based on regular expressions that could detect matches for different rotations.
Both points might be non-issues. We could just try, I guess.
An alternative might be to start with making the rotation configurable. It might even serve as a basis for future work: if there is no rotation given in the config, we can use the rotation heuristic you describe.
Does that make sense? Would you be interested in working on that?
No description provided.
The text was updated successfully, but these errors were encountered: