Skip to content

MRZ reading in portrait crash #152

Description

@gsipic

Current Behaviour

The app will crash when trying to read MRZ in portrait position

java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
                   at android.graphics.Bitmap.createBitmap(Bitmap.java:916)
                   at android.graphics.Bitmap.createBitmap(Bitmap.java:873)
                   at org.idpass.smartscanner.lib.mrz.MRZAnalyzer.analyze(MRZAnalyzer.kt:100)

Expected Behaviour

It should not crash and scanning MRZ with Portrait orientation should work

Steps to Reproduce the Problem

  1. Open SmartScanner App
  2. Go back to the home page and try to open MRZ, it will crash automatically

Context

  • Version: 0.4.6

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions