Skip to content

Four-point perspective transformation vs. crop border color #4

Description

@fonic

The four-point perspective transformation sometimes does more harm than good, especially when the receipt isn't cut precisely. In this example, the OCR mostly fails due to the transformation distorting the contents.

Would it be possible to modify the transformation to ignore those small imperfections?

Alternatively, would it be possible to crop the image based on color instead, e.g. use a black backdrop when scanning / taking a picture and then automatically crop that black backdrop?

Receipt:
Image

Outline:
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions